Christian Kroll
14 years ago
2 changed files with 86 additions and 0 deletions
@ -0,0 +1,73 @@ |
|||
#include <stdint.h> |
|||
#include <assert.h> |
|||
|
|||
#include "../compat/pgmspace.h" |
|||
#include "bitmapscroller.h" |
|||
#include "laborlogo.h" |
|||
|
|||
|
|||
static uint8_t laborlogo_getChunk(unsigned int const nBitPlane, |
|||
unsigned int const nChunkX, |
|||
unsigned int const nChunkY, |
|||
unsigned int const nFrame) |
|||
{ |
|||
assert(nChunkX < 6); |
|||
assert(nChunkY < 48); |
|||
|
|||
static 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, 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}}; |
|||
|
|||
return pgm_read_byte(&aBitmap[nChunkY][nChunkX]); |
|||
} |
|||
|
|||
void laborlogo() |
|||
{ |
|||
bitmap_scroll(48, 48, 1, 400, 75, laborlogo_getChunk); |
|||
} |
@ -0,0 +1,13 @@ |
|||
/*
|
|||
* laborlogo.h |
|||
* |
|||
* Created on: 13.04.2010 |
|||
* Author: chris |
|||
*/ |
|||
|
|||
#ifndef LABORLOGO_H_ |
|||
#define LABORLOGO_H_ |
|||
|
|||
void laborlogo(); |
|||
|
|||
#endif /* LABORLOGO_H_ */ |
Loading…
Reference in new issue