 |
Serial Wombat Arduino Library
|
Go to the documentation of this file.
108 int16_t
begin(uint8_t
pin, uint8_t numberOfLEDs, uint16_t userBufferIndex);
113 int16_t
write(uint8_t led, uint32_t color);
116 int16_t
write(uint8_t led, int16_t color);
118 int16_t
write(uint8_t led, int32_t color);
126 int16_t
write(uint8_t led, uint8_t length, uint32_t colors[]);
175 int16_t
barGraph(uint8_t sourcePin, uint32_t offRGB, uint32_t onRGB, uint16_t min, uint16_t max);
177 uint8_t _numLEDS = 0;
178 uint16_t _userBufferIndex=0;
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
Definition: SerialWombat.h:272
@ ws2812ModeChase
A single lit LED cycles through all of the LEDs.
Definition: SerialWombatWS2812.h:30
SWWS2812Mode
Definition: SerialWombatWS2812.h:27
@ ws2812ModeBuffered
Standard buffered mode. Colors are uploaded by the host.
Definition: SerialWombatWS2812.h:28
int16_t writeAnimationLED(uint8_t frame, uint8_t led, uint32_t color)
set the color of one LED in an animation frame
Definition: SerialWombatWS2812.cpp:51
int16_t write(uint8_t led, uint32_t color)
Set an LED color.
Definition: SerialWombatWS2812.cpp:18
int16_t barGraph(uint8_t sourcePin, uint32_t offRGB, uint32_t onRGB, uint16_t min, uint16_t max)
Display a bargraph using the configured ws2812 class.
Definition: SerialWombatWS2812.cpp:118
int16_t writeAnimationUserBufferIndex(uint16_t index, uint8_t numberOfFrames)
set the location in UserBuffer where the animation array will be stored and number of frames
Definition: SerialWombatWS2812.cpp:88
int16_t writeAnimationFrame(uint8_t frame, uint32_t colors[])
Store an array of colors for an entire animation frame.
Definition: SerialWombatWS2812.cpp:67
@ ws2812ModeAnimation
Multiple arrays with delays are uploaded by the host and displayed over time by the Serial Wombat chi...
Definition: SerialWombatWS2812.h:29
Describes a Serial Wombat Pin. Is base class for other pin modes.
Definition: SerialWombat.h:799
SerialWombatWS2812(SerialWombatChip &serialWombat)
Constructor for SerialWombatWS2812 class.
Definition: SerialWombatWS2812.cpp:4
A Class representing a WS2812 or compatible RGB LED string connected to a Serial Wombat pin.
Definition: SerialWombatWS2812.h:87
uint8_t pin()
Returns the current SW pin number. Used primarily for virtual calls by derived classes.
Definition: SerialWombat.h:861
int16_t writeMode(SWWS2812Mode mode)
Sets the mode of the WS2812 LED Driver.
Definition: SerialWombatWS2812.cpp:112
int16_t readBufferSize()
returns the number of bytes of UserBuffer required to service the configured number of LEDs
Definition: SerialWombatWS2812.cpp:94
int16_t begin(uint8_t pin, uint8_t numberOfLEDs, uint16_t userBufferIndex)
Initialize a WS2812 LED driver object.
Definition: SerialWombatWS2812.cpp:8
int16_t writeAnimationFrameDelay(uint8_t frame, uint16_t delay_mS)
Set how long an animation frame should be displayed before moving to the next frame.
Definition: SerialWombatWS2812.cpp:82