CuVoodoo STM32F1 firmware template
|
library to communicate with a Titan Micro TM1637 IC attached to a 7-segment displays (API) More...
Go to the source code of this file.
Enumerations | |
enum | led_tm1637_brightness_t { LED_TM1637_1DIV16 = 0, LED_TM1637_2DIV16 = 1, LED_TM1637_4DIV16 = 2, LED_TM1637_10DIV16 = 3, LED_TM1637_11DIV16 = 4, LED_TM1637_12DIV16 = 5, LED_TM1637_13DIV16 = 6, LED_TM1637_14DIV16 = 7 } |
display brightness levels | |
Functions | |
void | led_tm1637_setup (void) |
setup communication with TM1637 IC | |
bool | led_tm1637_off (void) |
switch display on More... | |
void | led_tm1637_brightness (enum led_tm1637_brightness_t brightness) |
set display brightness More... | |
bool | led_tm1637_number (uint16_t number) |
display number More... | |
bool | led_tm1637_time (uint8_t hours, uint8_t minutes) |
display time More... | |
bool | led_tm1637_text (char *text) |
display text More... | |
library to communicate with a Titan Micro TM1637 IC attached to a 7-segment displays (API)
Definition in file led_tm1637.h.
void led_tm1637_brightness | ( | enum led_tm1637_brightness_t | brightness | ) |
set display brightness
[in] | brightness | brightness level to set |
Definition at line 289 of file led_tm1637.c.
bool led_tm1637_number | ( | uint16_t | number | ) |
display number
[in] | number | number to display (0-9999) |
Definition at line 294 of file led_tm1637.c.
bool led_tm1637_off | ( | void | ) |
bool led_tm1637_text | ( | char * | text | ) |
display text
[in] | text | text to display (4 characters) |
Definition at line 306 of file led_tm1637.c.
bool led_tm1637_time | ( | uint8_t | hours, |
uint8_t | minutes | ||
) |
display time
[in] | hours | hours to display (0-99) |
[in] | minutes | minutes to display (0-99) |
Definition at line 300 of file led_tm1637.c.