Module tm1637_gpio_driver::fourdigit7segdis [−][src]
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
DISPLAY_COUNT | We have 4 displays so we can display 4 digits. |
STOPWATCH_MAX | Maximum value for stopwatch. |
Functions
display_current_time_in_loop | Displays “hh:mm” with blinking double point on the display. Blocks the calling thread because this is an infinite loop. |
display_stopwatch | Starts a stopwatch aka counter from 0 to 9999. You need to provide a sleep_fn that waits 1s (for stopwatch). |
display_text_banner_in_loop | 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. |
display_timer | 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. |