![](/media/cache/profiles/0b836a42ec00875cf640458aa93411cb.jpg.50x50_q85.jpg)
Example for WS2812 Library
Dependencies: PixelArray WS2812 mbed
You are viewing an older revision! See the latest version
Homepage
This is a demo for the WS2812 LED driver library.
The the timings of the bit banging operation are very sensitive. Depending on the platform, you will need to change the timing values in the WS2812 constructor. The default values in this demo are for the K64F. Here are a few other values for other platforms:
K64F, KL46Z: 0, 5, 5, 0
LPC1768: 5, 10, 10, 15
NUCLEO F411RE: 7, 15, 10, 15
If you are curious how to determine these values, see the WS2812 library page below.
Import libraryWS2812
Library for the WS2812 LED Driver. Uses bit banging and nops for precise timing. Number of nops executed are configurable at run time.
.