64 TM1637_PW_1_16 = 0x00,
65 TM1637_PW_2_16 = 0x01,
66 TM1637_PW_4_16 = 0x02,
67 TM1637_PW_10_16 = 0x03,
68 TM1637_PW_11_16 = 0x04,
69 TM1637_PW_12_16 = 0x05,
70 TM1637_PW_13_16 = 0x06,
71 TM1637_PW_14_16 = 0x07
104 bool colon,
bool leading_zeros);
Low-level GPIO peripheral driver interface definitions.
uint16_t gpio_t
GPIO type identifier.
tm1637_brightness_t
Brightness level enum for the display.
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.
Pin configuration parameters for the tm1637 display.
gpio_t dio
GPIO for data input/output.
gpio_t clk
GPIO for clock.
const tm1637_params_t * params
Configuration parameters.