|
@@ -38,7 +38,9 @@ void setup (USER_MODE) {
|
|
|
}
|
|
|
|
|
|
// Init LCD
|
|
|
- printString(MODE_ "Welcome Jovian");
|
|
|
+ printString(MODE_ "Wake up in ");
|
|
|
+ printUnsigned(MODE_ millis(MODE));
|
|
|
+ printString(MODE_ "ms");
|
|
|
}
|
|
|
|
|
|
void loop (USER_MODE) {
|
|
@@ -67,16 +69,21 @@ void loop (USER_MODE) {
|
|
|
// Prevent persistent digit
|
|
|
if (counter >= 20) {
|
|
|
counter = 0;
|
|
|
- gotoLineColumn(MODE_ 2, 12);
|
|
|
- printChar(MODE_ ' ');
|
|
|
+ clearScreen(MODE);
|
|
|
}
|
|
|
|
|
|
// Show action on LCD
|
|
|
gotoLineColumn(MODE_ 1, 13 - i);
|
|
|
printChar(MODE_ '1');
|
|
|
|
|
|
- gotoLineColumn(MODE_ 2, 13 - counter / 10);
|
|
|
+ gotoLineColumn(MODE_ 2, 5 - counter / 10);
|
|
|
+ printString(MODE_ "Counter:");
|
|
|
printUnsigned(MODE_ counter);
|
|
|
+
|
|
|
+ gotoLineColumn(MODE_ 3, 0);
|
|
|
+ printString(MODE_ "Date:");
|
|
|
+ printUnsigned(MODE_ millis(MODE));
|
|
|
+ printString(MODE_ "ms");
|
|
|
}
|
|
|
}
|
|
|
}
|