Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
APA102 Class Reference

Public Member Functions

 APA102 (uint16_t n)
 
 APA102 (uint16_t n, SPIBase &spiRef)
 
void begin (void)
 
void begin (SPISettings &mySettings)
 
void end (void)
 
void show (void)
 
void show (int16_t SPos)
 
void clear (void)
 
void setPixel (uint16_t n, uint8_t r, uint8_t g, uint8_t b)
 
void setPixel (uint16_t n, uint8_t r, uint8_t g, uint8_t b, uint8_t br)
 
void setPixel (uint16_t n, col_t *p)
 
void setAllPixel (uint8_t r, uint8_t g, uint8_t b)
 
void setAllPixel (col_t *)
 
void setBrightness (uint8_t)
 
uint8_t getBrightness (void)
 
void sendStart (void)
 
void sendStop (void)
 
void directWrite (uint8_t r, uint8_t g, uint8_t b, uint8_t br)
 

Protected Attributes

uint16_t numLEDs
 
uint8_t * LEDbuffer
 
uint8_t brightness
 
SPISettings SPI_APA_Settings = SPISettings(4000000, MSBFIRST, SPI_MODE3)
 
SPIBasepSPI