clocks/ticker/ticker_clock
library
Constants
-
kDelayS
→ const int
-
Each phase shows different "text" on the right
There is 0,1,2,3,4
0 = Temp Now
1 = Low Temp
2 = High Temp
3 = Current Location
4 = Date
note: kDelayS * kPhases should equal 3,5,10,15,20,30,60
if it's to loop seemlessly once a minute
-
kPhases
→ const int
-
Number of phases (or phrases) we display on the right
Functions
-
buildRightTickerText(ClockModel model)
→ String
-
buildRightTickerText
String is decided based on the rules above
-
buildTickerString(ClockModel clockModel)
→ String
-
Builds the actual ticker string
e.g. "15:30:45 Mountain View, CA "
The string format is as follows
B
C+D
A = Time, with 1 character padding for UI
B = X spaces (36 - (a.length + b.length + d.length)
C = Right/Phased String, Temp/Location/Date
D = 2 Character padding on the right for Icon Space
Icons were originally emoji, but imported assets for compat