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
mbed-os.lib@2:0d3906d69a41, 2016-12-10 (annotated)
- Committer:
- devararendy
- Date:
- Sat Dec 10 09:21:00 2016 +0000
- Revision:
- 2:0d3906d69a41
- Parent:
- 0:a27bf0451169
added some explanation of using TIM to measure asm("NOP") execution time and an example of using sendColors for sending all colors in buffer to all LEDs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
devararendy | 0:a27bf0451169 | 1 | http://mbed.org/users/bLandais/code/mbed-os/#4c0e0edd4545 |