You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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

About

Avatar for Gordon @Gordon started