Interface definition for the TM1637 4-digit 7-segment display driver. More...
Interface definition for the TM1637 4-digit 7-segment display driver.
Definition in file tm1637.h.
Go to the source code of this file.
Data Structures | |
struct | tm1637_params_t |
Pin configuration parameters for the tm1637 display. More... | |
struct | tm1637_t |
tm1637 driver descriptor More... | |
Enumerations | |
enum | tm1637_brightness_t { TM1637_PW_1_16 = 0x00 , TM1637_PW_2_16 = 0x01 , TM1637_PW_4_16 = 0x02 , TM1637_PW_10_16 = 0x03 , TM1637_PW_11_16 = 0x04 , TM1637_PW_12_16 = 0x05 , TM1637_PW_13_16 = 0x06 , TM1637_PW_14_16 = 0x07 } |
Brightness level enum for the display. More... | |
Functions | |
int | tm1637_init (tm1637_t *dev, const tm1637_params_t *params) |
Initializes the tm1637 device. | |
int | tm1637_write_number (const tm1637_t *dev, int16_t number, tm1637_brightness_t brightness, bool colon, bool leading_zeros) |
Writes an integer to the display. | |
int | tm1637_clear (const tm1637_t *dev) |
Clear the display. | |