change hour display to 12h format
This commit is contained in:
parent
949b4f40d1
commit
6711b58f20
4
include/credentials.h.tpl
Normal file
4
include/credentials.h.tpl
Normal file
@ -0,0 +1,4 @@
|
||||
struct WifiCredentials {
|
||||
const char* ssid;
|
||||
const char* password;
|
||||
} credentials[] = {"foo", "bar"};
|
||||
@ -26,7 +26,7 @@ namespace Display {
|
||||
Adafruit_7segment clockDisplay = Adafruit_7segment();
|
||||
|
||||
void drawTime() {
|
||||
int displayHour = hour();
|
||||
int displayHour = hourFormat12();
|
||||
int displayMinute = minute();
|
||||
int displayValue = displayHour * 100 + displayMinute;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user