WS2812B - Patterns
Materials
AMB82-mini x 1
WS2812B LED Strip / Ring / Stick / Board x1
Example
Introduction
This example controls the WS2812B RGB LED, using the SPI peripheral to create the waveform necessary for the LEDs.
WS2812B patterns controls LED (Strip / Ring / Stick / Board) with different colors with different LED patterns.
Procedure
Connect the WS2812B to the Ameba board as shown in the following diagrams.
Wiring Diagram:
To create different light patterns with many different colors,
Open the example in "File" -> "Example" -> "AmebaWS2812B" -> "WS2812B_Patterns"
Modify TOTAL_NUM_OF_LEDS to be the total number of LEDs on the WS2812B module, and modify NUM_OF_LEDS to be the number of LEDs that has connected.
Next, compile and upload, then press the reset button. The WS2812B displaying a color wipe, theater chase, rainbow, and theater chase rainbow light patterns in loop.