add new bitmaps, bitmap drawing func (broken)

This commit is contained in:
2020-01-12 13:15:21 +01:00
parent 4e2992f244
commit 6839a46358
5 changed files with 90 additions and 9 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ static struct SceneEvent onTick(struct BootScene *self, uint32_t millis) {
static void paint(struct BootScene *self)
{
LCD_clearDisplay(0);
LCD_setBitmap(Bitmap_Get("boot_logo")->bytes);
LCD_setBitmapFullScreen(Bitmap_Get("boot_logo")->bytes);
}
struct Scene *NewScene_Boot(void) {
+5 -3
View File
@@ -78,12 +78,14 @@ static void paint(struct MenuScene *self)
LCD_setStrEx(buf, XLINE/2, 0, BLACK, (struct TextStyle) {.size = FONT_DOUBLE, .align = ALIGN_CENTER});
LCD_setStrEx("°C", XLINE/2, 17, BLACK, (struct TextStyle) {.align = ALIGN_CENTER}); //.size = FONT_BOLD,
const struct BitmapImage *img;
if (fire_enabled()) {
strcpy(buf, "RUN");
img = Bitmap_Get("flame");
} else {
strcpy(buf, "Off");
img = Bitmap_Get("no_flame");
}
LCD_setStrEx(buf, 0, 30, BLACK, (struct TextStyle) {.size = FONT_BOLD});
LCD_setBitmap(img, XLINE/2-24/2, 26, false, BLACK);
priv->basePaint((struct Scene *) self);
}