setWatch calls a function when the digital input changes, from low to high, from high to low, or in both cases. If you want to read a value every 20ms you'll have to use setInterval. I'd change to:
1) Run every 10ms using setInterval
a) read pot
b)read button/set led
c) send data
If you move your fader or not, messages are sent every 10ms.
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.
setWatch calls a function when the digital input changes, from low to high, from high to low, or in both cases. If you want to read a value every 20ms you'll have to use setInterval. I'd change to:
1) Run every 10ms using setInterval
a) read pot
b)read button/set led
c) send data
If you move your fader or not, messages are sent every 10ms.