Just completed my first inPulse app, a Ternary clockface.
Attachment:
Ternary clock on inPulse.jpg [ 12.16 KiB | Viewed 200 times ]
Here's how to read the display:
- Hours are in the top half (red lights), shown in 24-hour format
- Minutes are in the bottom half (blue lights)
- Each has 4 ternary digits (from left to right: 27, 9, 3, 1)
- For each digit, if it's zero then no lights are on, if it's one then the bottom light is on, if it's two then the top light is on.
So the time in the picture is:
- Hours = 0*27 + 2*9 + 1*3 + 0*1 = 21 = 9pm
- Minutes = 1*27 + 1*9 + 2*3 + 1*1 = 43
- Time = 9:43pm
Also, at the very bottom of the display, the line moves to the right as the minute counts down. The button toggles the display on/off.
Attached is a zip file TernacyClock.zip that includes the pulse_app.c and supporting inputs for the font resource for the day and date at the bottom.
Happy inPulsing!