32 #include <mraa/gpio.h>
36 #define TM1637_ADDR 0x40
37 #define TM1637_REG 0xC0
38 #define TM1637_CMD 0x88
41 #define M_DISPLAY_DIGITS 4
102 mraa_result_t
write(uint8_t *digits);
109 mraa_result_t
write(
int d, ...);
117 mraa_result_t
writeAt(
int index,
char symbol);
124 mraa_result_t
write(std::string digits);
141 void i2c_writeByte(uint8_t value);
143 uint8_t encode(
char c);
145 mraa_gpio_context m_clk, m_dio;
148 uint8_t m_brightness;
mraa_result_t writeAt(int index, char symbol)
Definition: tm1637.cxx:110
TM1637(int clk_pin, int dio_pin, int bright=3, M_FAST_GPIO mmio=YES)
Definition: tm1637.cxx:43
API for the TM1637 7-Segment Display.
Definition: tm1637.h:73
~TM1637()
Definition: tm1637.cxx:81
M_FAST_GPIO
Definition: tm1637.h:79
void setColon(bool value)
Definition: tm1637.cxx:130
mraa_result_t write(uint8_t *digits)
Definition: tm1637.cxx:90
void setBrightness(int value)
Definition: tm1637.cxx:139