add utf8, some glyphs, and more font rendering options
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "scenes.h"
|
||||
#include "liquid.h"
|
||||
#include "../nokia.h"
|
||||
#include "../graphics/nokia.h"
|
||||
#include <malloc.h>
|
||||
|
||||
struct private {
|
||||
|
||||
+13
-11
@@ -1,6 +1,6 @@
|
||||
#include "scenes.h"
|
||||
#include "liquid.h"
|
||||
#include "../nokia.h"
|
||||
#include "../graphics/nokia.h"
|
||||
#include "../analog.h"
|
||||
#include <malloc.h>
|
||||
#include <stdio.h>
|
||||
@@ -51,27 +51,29 @@ static void Root_paint(struct Scene *scene)
|
||||
const char *header = "???";
|
||||
switch (priv->timer_phase) {
|
||||
case 0:
|
||||
header = "ICE";
|
||||
header = "Drink water";
|
||||
break;
|
||||
case 1:
|
||||
header = " COLD";
|
||||
header = " Drink water";
|
||||
break;
|
||||
case 2:
|
||||
header = "COCA";
|
||||
header = " Drink water";
|
||||
break;
|
||||
case 3:
|
||||
header = " COLA";
|
||||
header = " Drink water";
|
||||
break;
|
||||
}
|
||||
|
||||
LCD_setStr(header, 20, 3, 1);
|
||||
LCD_setStrEx(header, 0, 3, 1, 3);
|
||||
|
||||
LCD_setRect(0, 15, 83, 35, 1, 1);
|
||||
LCD_setRect(0, 12, 83, 33, 1, 1);
|
||||
char buf[10];
|
||||
sprintf(buf, "%3d", priv->pos);
|
||||
LCD_setStr(buf, 2, 17, 0);
|
||||
sprintf(buf, "%.0f C", analog_read());
|
||||
LCD_setStr(buf, 2, 26, 0);
|
||||
// sprintf(buf, "%3d", priv->pos);
|
||||
// LCD_setStr(buf, 2, 15, 0);
|
||||
sprintf(buf, "🌡%.0f°C", analog_read());
|
||||
LCD_setStrEx(buf, 2, 15, 0, 2);
|
||||
|
||||
LCD_setStr("×↑↓←→⏰⌛☸⏎🌡°🔙▶◀", 2, 33, 1);
|
||||
LCD_updateDisplay();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user