ESPectro32 Library
Library for using ESPectro32 board
|
RGB LED class. More...
#include <ESPectro32_RGBLED.h>
Public Member Functions | |
ESPectro32_RGBLED (gpio_num_t gpioNum=ESPECTRO32_RGBLED_GPIO) | |
Public Member Functions inherited from WS2812 | |
WS2812 (gpio_num_t gpioNum, uint16_t pixelCount, int channel=RMT_CHANNEL_0) | |
Construct a wrapper for the pixels. More... | |
void | show () |
Show the current Neopixel data. More... | |
void | setColorOrder (char *order) |
Set the color order of data sent to the LEDs. More... | |
void | setPixel (uint16_t index, uint8_t red, uint8_t green, uint8_t blue) |
Set the given pixel to the specified color. More... | |
void | setPixel (uint16_t index, RgbLedColor_t pixel) |
Set the given pixel to the specified color. More... | |
void | setPixel (uint16_t index, uint32_t pixel) |
Set the given pixel to the specified color. More... | |
void | setBrightness (uint16_t index, uint8_t factor) |
void | setBrightnessPercent (uint16_t index, float percent) |
void | clear () |
Clear all the pixel colors. More... | |
uint16_t | getPixelCount () |
virtual | ~WS2812 () |
Class instance destructor. | |
RGB LED class.
You can use this class to work with on-board RGB LED based on WS2812/WS2813, or known as Neopixel. Hey, you can use it for externally connected WS2812/WS2813.