11:53…
Video of the Pimoroni Mote version by David Glaude (https://twitter.com/DavidGlaude/status/764214446822678528)
Video of the Scroll pHAT version by David Glaude (https://twitter.com/DavidGlaude/status/784272633357488128)
PyTIX can either use:
- curses to draw the clock to a terminal window.
- the mote library to display the time. (Requires Pimoroni Mote hardware.)
- the Scroll pHAT library to display the time. (Requires Pimoroni Scroll pHAT hardware.)
- the Unicorn HAT library to display the time. (Requires Pimoroni Scroll pHAT hardware.)
- the Sense HAT library to display the time. (Requires Raspberry Pi Foundation Sense HAT hardware.)
python pytix.py [update interval, defaults to 4 seconds] ["--24" for 24-hour mode]
python pytix_mote.py [update interval, defaults to 1 second] ["--12" for 12-hour mode]
python pytix_scroll.py [update interval, defaults to 1 second] ["--12" for 12-hour mode]
python pytix_unicorn.py [update interval, defaults to 1 second] ["--12" for 12-hour mode]
python pytix_sense.py [update interval, defaults to 1 second] ["--12" for 12-hour mode]
Count the groups of colored squares from left to right to get the time—e.g., 1x red (left), 2x green, 3x blue, 4x red(right) means it is 12:34.
Unicorn HAT and Sense HAT version display on a 8 by 8 square of multicolor LEDs. hours are on top and minutes below. By changing the code you can adapt the rotation of the display.
Ctrl-C