Are you saying in a roundabout way you have an IskraJS board, or at least not an official Espruino board?
I don't think digitalPulse will do what you need, even if it could output small enough pulses. You need the gap between them to be small too, and so to power neopixels you'd need it to be able to run through an array of 48 floating point items for every single neopixel - I don't think digitalPulse would be fast enough even if the timer was set up to handle it.
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.
Are you saying in a roundabout way you have an IskraJS board, or at least not an official Espruino board?
I don't think
digitalPulse
will do what you need, even if it could output small enough pulses. You need the gap between them to be small too, and so to power neopixels you'd need it to be able to run through an array of 48 floating point items for every single neopixel - I don't think digitalPulse would be fast enough even if the timer was set up to handle it.If this is just about neopixels and you not wanting to use an SPI line, check out trying to compile Espruino with this code built in: https://github.com/espruino/Espruino/blob/master/libs/neopixel/jswrap_neopixel.c#L135-L141
For the WIO LTE the neopixel wasn't on an SPI pin and so there needed to be a software-only solution, which works for STM32: https://github.com/espruino/Espruino/blob/52352efac4f8f40976a4d268a0a074ad15251b29/targets/stm32/stm32_ws2812b_driver.c#L12