If we want to go the custom code route maybe we could add a digitalVector that is similar to the digitalPulse, something like: digitalVector(pin, duration, vector) where duration is the duration of a bit on the gpio pin and vector is an unsigned byte array that gets shifted out on the pin (need to agree which bit of every byte gets shifted out first). This could be done using DMA on processors that support 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.
If we want to go the custom code route maybe we could add a digitalVector that is similar to the digitalPulse, something like:
digitalVector(pin, duration, vector)
whereduration
is the duration of a bit on the gpiopin
and vector is an unsigned byte array that gets shifted out on the pin (need to agree which bit of every byte gets shifted out first). This could be done using DMA on processors that support it.