Module tm1637_gpio_driver::fourdigit7segdis
source · [−]Expand description
Utility functions on top of the TM1637 driver to display content on the 4-digit 7-segment display by AZDelivery. You can use them but you don’t have to. They show how the driver works/could be used.
Constants
We have 4 displays so we can display 4 digits.
Maximum value for stopwatch.
Functions
Displays “hh:mm” with blinking double point on the display.
Blocks the calling thread because this is an infinite loop.
Starts a stopwatch aka counter from 0 to 9999.
You need to provide a sleep_fn that waits 1s (for stopwatch).
Displays a text over and over again. The text will move “animated” accross the
screen from right to left.
Blocks the calling thread because this is an infinite loop.
Starts a timer from x to 0. Needs a sleep_fn (probably one that sleeps for one second / 1Hz).
Displays pure seconds. No minutes:seconds.