Hi Gordon,
When the callback function of setWatch is called, an object is passed with the following variables:
"time", "lastTime", "state"
Please include "pin". I would like to use the same callback function multiple times for several pins. So we need to know the pin as well.
Many thanks
Sacha
@Sacha started
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.
Hi Gordon,
When the callback function of setWatch is called, an object is passed with the following variables:
"time", "lastTime", "state"
Please include "pin". I would like to use the same callback function multiple times for several pins. So we need to know the pin as well.
Many thanks
Sacha