Skip to content

Commit baa625f

Browse files
authored
Update ArduinoMatrixClock.ino
1 parent 878ecd8 commit baa625f

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

ArduinoMatrixClock/ArduinoMatrixClock.ino

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ AM/PM = time format 12/24 h,
3434
F = font, : = dots, B = brightness, RI = rotate font 1, RII = rotate font 2, U = rotate font upside down
3535
Strt = start (second are set to 0 after press the button)
3636
37+
How the clock show time (t), date (D) and temerature (T)
38+
There are few examples
39+
40+
Show only time (t) (all 60 seconds). Temperature and date are set to 0
41+
0tttttttttt tttttttttt tttttttttt tttttttttt tttttttttt tttttttttt60 second
42+
43+
Date (D) is set to 40 second
44+
0tttttttttt tttttttttt tttttttttt tttttttttt DDDDDDDDDD DDDDDDDDDD60 second
45+
46+
Date (D) is set to 30, temperature (T) is set to 40
47+
0tttttttttt tttttttttt tttttttttt DDDDDDDDDD TTTTTTTTTT TTTTTTTTTT60 second
48+
49+
Date (D) and temperature (T) are set to 40. Date has priority. Temperature will not show
50+
0tttttttttt tttttttttt tttttttttt tttttttttt DDDDDDDDDD DDDDDDDDDD60 second
51+
52+
Date (D) and temperature (T) is set to 60. Date has priority. Temperature will not show
53+
0DDDDDDDDDD DDDDDDDDDD DDDDDDDDDD DDDDDDDDDD DDDDDDDDDD DDDDDDDDDD60 second
54+
3755
3856
SERIAL COMMUNICATION (9600b)
3957
You have to send three chars. 1st is function, other two are digits
@@ -49,8 +67,8 @@ H = hour (0 - 23)
4967
M = minute (0 - 59)
5068
S = second (0 - 59)
5169
52-
D = show date (how many second per minute is date shown 00 = no, 60 = always; date is shown last xx second)
53-
t = show time (how many second per minute is temperature shown 00 = no, 60 = always; temperature is shown last xx second)
70+
D = show date (what second is date shown; 00 = newer, 60 = always)
71+
t = show time (what second is temperature shown 00 = newer, 60 = always)
5472
R = rotate font 1
5573
r = rotate font 2
5674
U = rotate font UpsideDown
@@ -905,16 +923,17 @@ void WriteTime() {
905923
showMode = 0;
906924
}
907925

908-
if (second == showDate && showDate > 0) {
909-
//showdate is now & showdate is enabled
910-
showMode = 1;
911-
}
912-
913926
if (second == showTemperature && showTemperature > 0) {
914927
//showtemp is now & showtemp is enabled
915928
showMode = 2;
916929
}
917930

931+
if (second == showDate && showDate > 0) {
932+
//showdate is now & showdate is enabled
933+
//date has priority
934+
showMode = 1;
935+
}
936+
918937
if (showTemperature == 60) {
919938
//salways howtemp
920939
showMode = 2;

0 commit comments

Comments
 (0)