26 #include <mraa/gpio.hpp>
27 #include <mraa/spi.hpp>
69 APA102(uint16_t ledCount, uint8_t spiBus,
bool batchMode =
false, int8_t csn = -1);
85 void setLed(uint16_t ledIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
103 void setAllLeds(uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
116 setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t brightness, uint8_t r, uint8_t g, uint8_t b);
139 void setLeds(uint16_t startIdx, uint16_t endIdx, uint8_t* colors);
159 mraa::Gpio* m_csnPinCtx;
163 uint16_t m_frameLength;
168 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
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:57