I think realistically you want setWatch for the button and setInterval for the potentiometer.
I see no problem at all with what you're doing - just be aware that the UART's default is 9600 baud - so ~960 bytes per second. So 56 bytes 100 times a second is more than that - you'll need to use a higher baud rate - maybe 115200?
edit: about the irqs - yes, that would make your code run instantly but it only works for C functions, not JS (and introduces a lot more stuff you have to worry about). For what you're doing the 100% standard setWatch will work perfectly
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.
I think realistically you want setWatch for the button and setInterval for the potentiometer.
I see no problem at all with what you're doing - just be aware that the UART's default is 9600 baud - so ~960 bytes per second. So 56 bytes 100 times a second is more than that - you'll need to use a higher baud rate - maybe 115200?
edit: about the irqs - yes, that would make your code run instantly but it only works for C functions, not JS (and introduces a lot more stuff you have to worry about). For what you're doing the 100% standard setWatch will work perfectly