|
@ -5,69 +5,68 @@ |
|
|
#include "bitmapscroller.h" |
|
|
#include "bitmapscroller.h" |
|
|
#include "laborlogo.h" |
|
|
#include "laborlogo.h" |
|
|
|
|
|
|
|
|
|
|
|
static const uint8_t aBitmap[48][6] PROGMEM = |
|
|
|
|
|
{{0xFF, 0xFF, 0xE0, 0x07, 0xFF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xFF, 0x00, 0xF8, 0xFF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF8, 0x00, 0xFF, 0x1F, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF0, 0x00, 0xFF, 0xEF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xC0, 0x00, 0xFF, 0xF3, 0xFF}, |
|
|
|
|
|
{0xFF, 0x80, 0x00, 0xFF, 0xFD, 0xFF}, |
|
|
|
|
|
{0xFF, 0x00, 0x00, 0xFF, 0xFE, 0xFF}, |
|
|
|
|
|
{0xFE, 0x00, 0x03, 0x3F, 0xFF, 0x7F}, |
|
|
|
|
|
{0xFC, 0x00, 0x04, 0xDF, 0xFF, 0xBF}, |
|
|
|
|
|
{0xF8, 0x00, 0x08, 0xEF, 0xFF, 0xDF}, |
|
|
|
|
|
{0xF0, 0x00, 0x10, 0xF7, 0xFF, 0xEF}, |
|
|
|
|
|
{0xF0, 0x00, 0x10, 0xF7, 0xFF, 0xEF}, |
|
|
|
|
|
{0xE0, 0xC0, 0x10, 0xF7, 0xFF, 0xF7}, |
|
|
|
|
|
{0xC0, 0xC0, 0x10, 0xF7, 0xFF, 0xFB}, |
|
|
|
|
|
{0xC0, 0x40, 0x08, 0xEF, 0xFF, 0xFB}, |
|
|
|
|
|
{0xC0, 0x40, 0x04, 0xDF, 0xFF, 0xFB}, |
|
|
|
|
|
{0x80, 0x40, 0x03, 0x3F, 0xFF, 0xFD}, |
|
|
|
|
|
{0x87, 0xFC, 0x00, 0xFF, 0xFF, 0xFD}, |
|
|
|
|
|
{0x84, 0x0C, 0x00, 0xFF,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07, 0xFF, 0x7F}, |
|
|
|
|
|
{0xFF, 0x00, 0x00, 0xFF, 0xFE, 0xFF}, |
|
|
|
|
|
{0xFF, 0x80, 0x00, 0xFF, 0xFD, 0xFF}, |
|
|
|
|
|
{0xFF, 0xC0, 0x00, 0xFF, 0xF3, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF0, 0x00, 0xFF, 0xEF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF8, 0x00, 0xFF, 0x1F, 0xFF}, |
|
|
|
|
|
{0xFF, 0xFF, 0x00, 0xF8, 0xFF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xFF, 0xE0, 0x07, 0xFF, 0xFF}}; |
|
|
|
|
|
|
|
|
static uint8_t laborlogo_getChunk(unsigned char const nBitPlane, |
|
|
static uint8_t laborlogo_getChunk(unsigned char const nBitPlane, |
|
|
unsigned char const nChunkX, |
|
|
unsigned char const nChunkX, |
|
|
unsigned char const nChunkY, |
|
|
unsigned char const nChunkY, |
|
|
unsigned int const nFrame) |
|
|
unsigned int const nFrame) |
|
|
{ |
|
|
{ |
|
|
assert(nChunkX < 6); |
|
|
assert(nChunkX < 6); |
|
|
assert(nChunkY < 48); |
|
|
assert(nChunkY < 48); |
|
|
|
|
|
|
|
|
static uint8_t aBitmap[48][6] PROGMEM = |
|
|
return pgm_read_byte(&aBitmap[nChunkY][nChunkX]); |
|
|
{{0xFF, 0xFF, 0xE0, 0x07, 0xFF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xFF, 0x00, 0xF8, 0xFF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF8, 0x00, 0xFF, 0x1F, 0xFF}, |
|
|
|
|
|
{0xFF, 0xF0, 0x00, 0xFF, 0xEF, 0xFF}, |
|
|
|
|
|
{0xFF, 0xC0, 0x00, 0xFF, 0xF3, 0xFF}, |
|
|
|
|
|
{0xFF, 0x80, 0x00, 0xFF, 0xFD, 0xFF}, |
|
|
|
|
|
{0xFF, 0x00, 0x00, 0xFF, 0x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|
|
|
{ |
|
|
{ |
|
|
bitmap_scroll(48, 48, 2, 400, 75, laborlogo_getChunk); |
|
|
bitmap_scroll(48, 48, 2, 400, 75, laborlogo_getChunk); |
|
|
} |
|
|
} |
|
|