pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.5 KiB
75 lines
2.5 KiB
14 years ago
|
#include <stdint.h>
|
||
|
#include <assert.h>
|
||
|
|
||
12 years ago
|
#include "../../compat/pgmspace.h"
|
||
14 years ago
|
#include "bitmapscroller.h"
|
||
|
#include "laborlogo.h"
|
||
|
|
||
13 years ago
|
static uint8_t const 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, 0xFF, 0xFD},
|
||
|
{0x04, 0x00, 0x1F, 0x07, 0xFF, 0xFE},
|
||
|
{0x04, 0x00, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x04, 0x00, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0xFF, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0x00, 0x80, 0x10, 0xF7, 0xFF, 0xFE},
|
||
|
{0xBF, 0xFC, 0x10, 0xF7, 0xFF, 0xFD},
|
||
|
{0xB0, 0x0C, 0x10, 0xF7, 0xFF, 0xFD},
|
||
|
{0x80, 0x00, 0x10, 0xF7, 0xFF, 0xFD},
|
||
|
{0xC0, 0x00, 0x10, 0xF7, 0xFF, 0xFB},
|
||
|
{0xC0, 0x00, 0x10, 0xF7, 0xFF, 0xFB},
|
||
|
{0xC0, 0x00, 0x10, 0xF7, 0xFF, 0xFB},
|
||
|
{0xE0, 0x00, 0x10, 0xF7, 0xFF, 0xF7},
|
||
|
{0xF0, 0x00, 0x10, 0xF7, 0xFF, 0xEF},
|
||
|
{0xF0, 0x00, 0x10, 0xF7, 0xFF, 0xEF},
|
||
|
{0xF8, 0x00, 0x10, 0xF7, 0xFF, 0xDF},
|
||
|
{0xFC, 0x00, 0x10, 0xF7, 0xFF, 0xBF},
|
||
|
{0xFE, 0x00, 0x1F, 0x07, 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}};
|
||
|
|
||
14 years ago
|
|
||
14 years ago
|
static uint8_t laborlogo_getChunk(unsigned char const nBitPlane,
|
||
13 years ago
|
unsigned char const nChunkX,
|
||
|
unsigned char const nChunkY,
|
||
|
unsigned int const nFrame)
|
||
14 years ago
|
{
|
||
13 years ago
|
assert(nChunkX < 6);
|
||
|
assert(nChunkY < 48);
|
||
14 years ago
|
|
||
13 years ago
|
return pgm_read_byte(&aBitmap[nChunkY][nChunkX]);
|
||
14 years ago
|
}
|
||
|
|
||
13 years ago
|
|
||
14 years ago
|
void laborlogo()
|
||
|
{
|
||
13 years ago
|
bitmap_scroll(48, 48, 2, 400, 75, 1, 1, laborlogo_getChunk);
|
||
14 years ago
|
}
|