1
0
Fork 0
This commit is contained in:
Pedro de Oliveira 2017-03-24 23:51:38 +00:00
parent 033861af9e
commit 6e311342dd
2 changed files with 19 additions and 15 deletions

View File

@ -6,6 +6,11 @@ typedef struct {
const uint8_t *buffer;
} SpriteDef;
typedef struct {
uint8_t frames;
SpriteDef sprite[];
} AnimationDef;
extern SpriteDef sprite_0;
extern SpriteDef sprite_1;
extern SpriteDef sprite_2;

View File

@ -58,12 +58,11 @@ void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1)
}
static int anim = 1;
static x = 0;
static int x = 0;
void ssd1306_LoadImage(void) {
//memcpy(SSD1306_Buffer, image, 1024);
fastlz_decompress(image, 1024, SSD1306_Buffer, 1024);
//size = fastlz_compress(a, 1024, b);
}
void ssd1306_DrawSprite(SpriteDef *sprite, int8_t x, int8_t y) {