27 #include <mraa/gpio.hpp> 39 uint8_t red, green, blue;
71 P9813(uint16_t ledCount, uint16_t clkPin, uint16_t dataPin,
bool batchMode =
false);
86 void setLed(uint16_t ledIdx, uint8_t r, uint8_t g, uint8_t b);
95 void setAllLeds(uint8_t r, uint8_t g, uint8_t b);
107 setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t r, uint8_t g, uint8_t b);
118 void setLeds(uint16_t startIdx, uint16_t endIdx, std::vector<RgbColor> colors);
128 std::vector<RgbColor> m_leds;
129 mraa::Gpio m_clkGpio;
130 mraa::Gpio m_dataGpio;
133 void sendByte(uint8_t data);
void setLed(uint16_t ledIdx, uint8_t r, uint8_t g, uint8_t b)
Definition: p9813.cxx:55
void pushState()
Definition: p9813.cxx:95
virtual ~P9813()
Definition: p9813.hpp:76
void setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t r, uint8_t g, uint8_t b)
Definition: p9813.cxx:67
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
P9813(uint16_t ledCount, uint16_t clkPin, uint16_t dataPin, bool batchMode=false)
Definition: p9813.cxx:36
API for controlling P9813/Chainable RGB LEDs.
Definition: p9813.hpp:59
void setAllLeds(uint8_t r, uint8_t g, uint8_t b)
Definition: p9813.cxx:61