37#define SBK_HT16K33_IS_DEFINED
43#define HT16K33_CMD_RAM 0x00
44#define HT16K33_CMD_KEYS 0x40
45#define HT16K33_CMD_SETUP 0x80
46#define HT16K33_CMD_ROWINT 0xA0
47#define HT16K33_CMD_DIMMING 0xE0
49#define HT16K33_DISPLAY_OFF 0x00
50#define HT16K33_DISPLAY_ON 0x01
51#define HT16K33_BLINK_OFF 0x00
52#define HT16K33_BLINK_1HZ 0x02
53#define HT16K33_BLINK_2HZ 0x04
54#define HT16K33_BLINK_0HZ5 0x06
83 void clear(uint8_t device);
109 void setLed(uint8_t device, uint8_t row, uint8_t col,
bool state);
117 void setLed(uint8_t row, uint8_t col,
bool state);
126 bool getLed(uint8_t device, uint8_t row, uint8_t col)
const;
134 bool getLed(uint8_t row, uint8_t col)
const;
140 void show(uint8_t device);
152 void _writeRow(uint8_t row);
~SBK_HT16K33()
Destructor. Frees allocated buffer memory.
Definition SBK_HT16K33.cpp:25
void setBrightness(uint8_t device, uint8_t brightness)
Set the brightness level (0–15) of the device (API-compatible wrapper).
Definition SBK_HT16K33.cpp:73
void setLed(uint8_t device, uint8_t row, uint8_t col, bool state)
Set an individual LED on or off (device-specific call) (API-compatible wrapper).
Definition SBK_HT16K33.cpp:90
SBK_HT16K33(uint8_t addr)
Construct a new SBK_HT16K33 instance.
Definition SBK_HT16K33.cpp:23
void clear()
Clear the internal display buffer.
Definition SBK_HT16K33.cpp:64
void begin()
Initialize the HT16K33 device at a given I2C address.
Definition SBK_HT16K33.cpp:34
bool getLed(uint8_t device, uint8_t row, uint8_t col) const
Get the current state of an LED in the buffer (API-compatible wrapper).
Definition SBK_HT16K33.cpp:107
void show()
Push internal buffer to the display.
Definition SBK_HT16K33.cpp:145