![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is an example program of WS2812 library https://developer.mbed.org/users/devararendy/code/WS2812/ in main program, i also put some line to measure how many asm NOP do we need. I have test it on STM32F411RE (Nucleo 411RE). if you would like to use another microcontroller, you need to adjust the asm("nop") in the library.
Dependencies: USBDevice WS2812 mbed-os
WS2812.lib@0:a27bf0451169, 2016-12-10 (annotated)
- Committer:
- devararendy
- Date:
- Sat Dec 10 08:26:36 2016 +0000
- Revision:
- 0:a27bf0451169
- Child:
- 1:c18078160be3
This is an example of RGB LED WS2812. In main.cpp i have commented some line. these line is to calculate how many asm("NOP") do we need. because different CPU clock will make different sum of NOP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
devararendy | 0:a27bf0451169 | 1 | WS2812#f080cb888db6 |