26 #include <mraa/gpio.hpp> 27 #include <mraa/spi.hpp> 70 APA102(uint16_t ledCount, uint8_t spiBus,
bool batchMode =
false, int8_t csn = -1);
86 void setLed(uint16_t ledIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
104 void setAllLeds(uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
117 setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
140 void setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t* colors);
164 mraa::Gpio* m_csnPinCtx;
168 uint16_t m_frameLength;
173 mraa::Result CSOff();
void setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b)
Definition: apa102.cxx:112
~APA102()
Definition: apa102.cxx:74
void setLedsBrightness(uint16_t startIdx, uint16_t endIdx, uint8_t brightness)
Definition: apa102.cxx:130
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setBusSpeed(int hz)
Definition: apa102.cxx:156
APA102(uint16_t ledCount, uint8_t spiBus, bool batchMode=false, int8_t csn=-1)
Definition: apa102.cxx:35
void pushState()
Definition: apa102.cxx:165
void setLed(uint16_t ledIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b)
Definition: apa102.cxx:94
void setAllLeds(uint8_t brightness, uint8_t r, uint8_t g, uint8_t b)
Definition: apa102.cxx:106
void setLedBrightness(uint16_t ledIdx, uint8_t brightness)
Definition: apa102.cxx:100
API for controlling APA102/DotStar RGB LED Strips.
Definition: apa102.hpp:58