I always start with native code and then try to find what works and what doesn't. For example, I learned that having the for-loop outside of the compiled function was significantly slower. May try PWM just to see what the upper limit is, but not SPI. Certainly will give assembler a shot.
With nodeMCU and lua I was able to achieve 60Khz with CPU speed at 80Mhz, and 120Khz at 160Mhz but it could not be sustained without it rebooting itself.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I always start with native code and then try to find what works and what doesn't. For example, I learned that having the for-loop outside of the compiled function was significantly slower. May try PWM just to see what the upper limit is, but not SPI. Certainly will give assembler a shot.
With nodeMCU and lua I was able to achieve 60Khz with CPU speed at 80Mhz, and 120Khz at 160Mhz but it could not be sustained without it rebooting itself.