@NoobJS, it depends what the callback has to do... 14000 / 60 = 234 events per second... You can try...
The setup for doing something like that is usually a bit different: a counter is connected to the pulse sensor and is made to measure for a calibrated time. The counts are then translated into RPM. Checkout this https://www.espruino.com/STM32+Peripherals out.
With the setWatch() you may try by making sure nothing else is eventing and watch only for a given time.
© Espruino, powered by microcosm.
Report a problem