Speed of the E31 at its I/O pins

Hi! I’m a newbie on the RISC-V architecture (done STM32, AVR and a tiny bit of ARM), so sorry for asking dumb questions…

Can you post a link to the WS2812 code?

Or…

Can you post a snippet of the C code loops you used?

How do you determine the # of iterations needed? (by formula or empirically?)

What is the best way to disable interrupts (if any are enabled)? Is their a nice way to do this (e.g. a pre-defined macro in a header somwhere)