|
|
@ -14,7 +14,7 @@ void show_loading_screen(uint8_t progress_percent, bool clear) { |
|
|
|
fb_clear(); |
|
|
|
fb_clear(); |
|
|
|
fb_blit(); |
|
|
|
fb_blit(); |
|
|
|
|
|
|
|
|
|
|
|
const uint8_t icon[14] = { |
|
|
|
const uint8_t ryba[14] = { |
|
|
|
0b11000011, |
|
|
|
0b11000011, |
|
|
|
0b01100110, |
|
|
|
0b01100110, |
|
|
|
0b01111110, |
|
|
|
0b01111110, |
|
|
@ -31,6 +31,7 @@ void show_loading_screen(uint8_t progress_percent, bool clear) { |
|
|
|
0b00011000, |
|
|
|
0b00011000, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define ZIR_W 12 |
|
|
|
#define ZIR_W 12 |
|
|
|
#define ZIR_H 3 |
|
|
|
#define ZIR_H 3 |
|
|
|
const uint8_t zirafa[ZIR_H * ZIR_W] = { |
|
|
|
const uint8_t zirafa[ZIR_H * ZIR_W] = { |
|
|
@ -73,14 +74,31 @@ void show_loading_screen(uint8_t progress_percent, bool clear) { |
|
|
|
0b00011111, |
|
|
|
0b00011111, |
|
|
|
0b11111000, |
|
|
|
0b11111000, |
|
|
|
0b00000000, |
|
|
|
0b00000000, |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int pos=0; |
|
|
|
|
|
|
|
for(;;) { |
|
|
|
|
|
|
|
fb_clear(); |
|
|
|
|
|
|
|
//fb_bitmap(0, pos, 14, 8, ryba, 1);
|
|
|
|
|
|
|
|
fb_bitmap(0, pos, ZIR_W, ZIR_H, zirafa, 1); |
|
|
|
|
|
|
|
fb_blit(); |
|
|
|
|
|
|
|
_delay_ms(500); |
|
|
|
|
|
|
|
pos++; |
|
|
|
|
|
|
|
if (pos>31) { |
|
|
|
|
|
|
|
pos = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
int a = 10; |
|
|
|
int a = 10; |
|
|
|
int b = 40; |
|
|
|
int b = 40; |
|
|
|
for (;;) { |
|
|
|
for (;;) { |
|
|
|
fb_bitmap(a, 0, ZIR_W, ZIR_H*8, zirafa, 0); |
|
|
|
fb_bitmap(a, 0, ZIR_W, ZIR_H*8, zirafa, 0); |
|
|
|
fb_bitmap(b, 16, 14, 8, icon, 0); |
|
|
|
fb_bitmap(b, 16, 14, 8, ryba, 0); |
|
|
|
a++; |
|
|
|
a++; |
|
|
|
b++; |
|
|
|
b++; |
|
|
|
if(a>127) { |
|
|
|
if(a>127) { |
|
|
@ -91,10 +109,10 @@ void show_loading_screen(uint8_t progress_percent, bool clear) { |
|
|
|
b = 0; |
|
|
|
b = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
fb_bitmap(a, 0, ZIR_W, ZIR_H*8, zirafa, 1); |
|
|
|
fb_bitmap(a, 0, ZIR_W, ZIR_H*8, zirafa, 1); |
|
|
|
fb_bitmap(b, 16, 14, 8, icon, 1); |
|
|
|
fb_bitmap(b, 16, 14, 8, ryba, 1); |
|
|
|
|
|
|
|
|
|
|
|
fb_blit(); |
|
|
|
fb_blit(); |
|
|
|
_delay_ms(100); |
|
|
|
_delay_ms(5); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|