10 years, 7 months ago.

Is there a code for WS2811/neopixel leds what will work with GCC offline?

I have found several libraries for the WS2811 leds, but they all require assembly code due to strict timing requirements. The gcc assembler won't work with these .s files as they are Keil syntax files. Has any one created a straight C/C++ version or a version that will work with the gcc assembler?

1 Answer

10 years, 5 months ago.

Depending on your mbed board, my library might work for you. However, it depends on the KL25Z board's DMA peripheral (though the code may work on other Freescale boards; I don't know yet).

See

Import libraryMulti_WS2811

Library allowing up to 16 strings of 60 WS2811 or WS2812 LEDs to be driven from a single FRDM-KL25Z board. Uses hardware DMA to do a full 800 KHz rate without much CPU burden.