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 84 TM1637(
int clk_pin,
int dio_pin,
int bright = 3);
95 mraa_result_t
write(uint8_t *digits);
102 mraa_result_t
write(
int d, ...);
110 mraa_result_t
writeAt(
int index,
char symbol);
117 mraa_result_t
write(std::string digits);
134 void i2c_writeByte(uint8_t value);
136 uint8_t encode(
char c);
138 mraa_gpio_context m_clk, m_dio;
141 uint8_t m_brightness;
mraa_result_t writeAt(int index, char symbol)
Definition: tm1637.cxx:101
TM1637(int clk_pin, int dio_pin, int bright=3)
Definition: tm1637.cxx:43
API for the TM1637 7-Segment Display.
Definition: tm1637.hpp:74
~TM1637()
Definition: tm1637.cxx:72
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setColon(bool value)
Definition: tm1637.cxx:121
mraa_result_t write(uint8_t *digits)
Definition: tm1637.cxx:81
void setBrightness(int value)
Definition: tm1637.cxx:130