Thinking about it more, the nicest improvement for the Waveform class would be to simply give it an array property buffers that works like the above. Or is there any reason to avoid accessing arrays?
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.
Thinking about it more, the nicest improvement for the Waveform class would be to simply give it an array property
buffers
that works like the above. Or is there any reason to avoid accessing arrays?