Skip to content

Commit

Permalink
Merge pull request #125 from phoenixphoebus/hourglass_and_wheel_anima…
Browse files Browse the repository at this point in the history
…tion

Added animations hourglass and wheel
  • Loading branch information
MajicDesigns authored Apr 3, 2024
2 parents 7202174 + bae4451 commit 779de8c
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion examples/Parola_Sprites_Library/Parola_Sprites_Library.ino
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,45 @@ const uint8_t PROGMEM walker[F_WALKER * W_WALKER] = // walking man
0x00, 0x10, 0x6e, 0x3e, 0xb8, 0xe8, 0x00,
};

const uint8_t F_WHEEL = 6;
const uint8_t W_WHEEL = 8;
const uint8_t PROGMEM wheelforward[F_WHEEL * W_WHEEL] =
{
0x3c,0x5a,0x99,0xff,0xff,0x99,0x5a,0x3c,
0x3c,0x7a,0x93,0xdf,0xfb,0xc9,0x5e,0x3c,
0x3c,0x72,0xb7,0x9f,0xf9,0xed,0x4e,0x3c,
0x3c,0x66,0xf7,0x9d,0xb9,0xef,0x66,0x3c,
0x3c,0x66,0xef,0xb9,0x9d,0xf7,0x66,0x3c,
0x3c,0x4e,0xed,0xf9,0x9f,0xb7,0x72,0x3c,
};

const uint8_t F_HOURGLASS = 19;
const uint8_t W_HOURGLASS = 8;
const uint8_t PROGMEM hourglass[F_HOURGLASS * W_HOURGLASS] =
{
0xc3,0xa7,0x9f,0x9f,0xa7,0xc3,0x00,0x00,
0xc3,0xa7,0x9f,0x9f,0xa7,0xc3,0x00,0x00,
//start dropping
0xc3,0xa7,0x9f,0xbd,0xa7,0xc3,0x00,0x00,
0xc3,0xa7,0x9f,0xdd,0xa7,0xc3,0x00,0x00,
0xc3,0xa7,0xbd,0xdd,0xa7,0xc3,0x00,0x00,
0xc3,0xa7,0xdd,0xdd,0xa7,0xc3,0x00,0x00,
0xc3,0xa5,0xfd,0xdd,0xa7,0xc3,0x00,0x00,
0xc3,0xe5,0xdd,0xdd,0xa7,0xc3,0x00,0x00,
0xc3,0xe5,0xdd,0xfd,0xa5,0xc3,0x00,0x00,
0xc3,0xe5,0xdd,0xdd,0xe5,0xc3,0x00,0x00,
0xc3,0xe5,0xf9,0xdd,0xe5,0xc3,0x00,0x00,
0xc3,0xe5,0xf9,0xf9,0xe5,0xc3,0x00,0x00,
//start flipping
0x42,0xe7,0xfb,0xfb,0xe7,0x42,0x00,0x00,
0x24,0x76,0x7a,0x7a,0x76,0x24,0x00,0x00,
0x14,0x3c,0x7e,0x7e,0x3c,0x14,0x00,0x00,
0x18,0x3c,0x7e,0x7e,0x3c,0x18,0x00,0x00,
0x2c,0x3e,0x7f,0x7f,0x3e,0x2c,0x00,0x00,
0x46,0x6f,0x5f,0x5f,0x6f,0x46,0x00,0x00,
0xc3,0xa7,0x9f,0x9f,0xa7,0xc3,0x00,0x00,
};

struct
{
const uint8_t *data;
Expand All @@ -247,7 +286,9 @@ sprite[] =
{ sailboat, W_SAILBOAT, F_SAILBOAT },
{ arrow2, W_ARROW2, F_ARROW2 },
{ wave, W_WAVE, F_WAVE },
{ pacman1, W_PMAN1, F_PMAN1 }
{ pacman1, W_PMAN1, F_PMAN1 },
{ wheelforward , W_WHEEL, F_WHEEL },
{ hourglass , W_HOURGLASS, F_HOURGLASS }
};

void doUI(void)
Expand Down

0 comments on commit 779de8c

Please sign in to comment.