WS2812 RGB LEDs with XIAO SAMD21

Is there a library for controlling WS2812 RGB LEDs with the XIAO SAMD21 board?
Any examples?
How can a nanoseconds delay be realized with this board?
I have working code for WS2812 with a Teensy 4.0 board, but this code uses the function delayNanoseconds(), which I can’t find for the SAMD21 board.

Thanks,
Michael

I think most people say install Adafruit… but that is a slippery slope… i will look to see if i can find a light version… its a good way to learn about bit banging…

This is for a different chip, but may give some inspiration

Hi there,
Samd21 may be a little too light weight, Why NOT this. I made one last year and it’s still going Strong on a Fountain.(BLE color control from the mobile)

The Xiao Nrf52840 is UP to the task and more! :star_struck: :+1:
Chek out Michael Schoeffler’s work Really only way to Roll your OWN IMO.
HTH
GL :slight_smile: PJ

fastled library work with samd21