ESP32 supports PWM for all(at least most) pins. So we have the choice between more than 16 pins.
Since pin is available in jstStartSignal, I would prefer to store it in buffer, instead of recalculating on each call.
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.
ESP32 supports PWM for all(at least most) pins. So we have the choice between more than 16 pins.
Since pin is available in jstStartSignal, I would prefer to store it in buffer, instead of recalculating on each call.