setWatch can watch only pins, so if your "event" is pin change then it is the best choice as it fires exactly at the right moment and does not miss. How would you do the polling, can you show the code? polling feels complex, what would be the advantage?
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
can watch only pins, so if your "event" is pin change then it is the best choice as it fires exactly at the right moment and does not miss. How would you do the polling, can you show the code? polling feels complex, what would be the advantage?