mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
conditional 40x40 icon
This commit is contained in:
@@ -182,10 +182,14 @@ void loop(void) {
|
|||||||
extern const uint8_t penguin[];
|
extern const uint8_t penguin[];
|
||||||
tft.setAddrWindow(wid - 40 - 40, 20 + 0, wid - 1 - 40, 20 + 39);
|
tft.setAddrWindow(wid - 40 - 40, 20 + 0, wid - 1 - 40, 20 + 39);
|
||||||
tft.pushColors(penguin, 1600, 1);
|
tft.pushColors(penguin, 1600, 1);
|
||||||
#else
|
#elif 1
|
||||||
extern const uint8_t wifi_full[];
|
extern const uint8_t wifi_full[];
|
||||||
tft.setAddrWindow(wid - 40 - 40, 20 + 0, wid - 40 - 40 + 31, 20 + 31);
|
tft.setAddrWindow(wid - 40 - 40, 20 + 0, wid - 40 - 40 + 31, 20 + 31);
|
||||||
tft.pushColors(wifi_full, 1024, 1, true);
|
tft.pushColors(wifi_full, 1024, 1, true);
|
||||||
|
#elif 1
|
||||||
|
extern const uint8_t icon_40x40[];
|
||||||
|
tft.setAddrWindow(wid - 40 - 40, 20 + 0, wid - 1 - 40, 20 + 39);
|
||||||
|
tft.pushColors(icon_40x40, 1600, 1);
|
||||||
#endif
|
#endif
|
||||||
tft.setAddrWindow(0, 0, wid - 1, ht - 1);
|
tft.setAddrWindow(0, 0, wid - 1, ht - 1);
|
||||||
if (aspect & 1) tft.drawRect(wid - 1, 0, 1, ht, WHITE);
|
if (aspect & 1) tft.drawRect(wid - 1, 0, 1, ht, WHITE);
|
||||||
|
|||||||
Reference in New Issue
Block a user