Update
This commit is contained in:
parent
033861af9e
commit
6e311342dd
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue