add new bitmaps, bitmap drawing func (broken)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user