Could sensor need the same? (e.g. is const sensor actually 0xD0 "D0" or D0)
or is the substitution somehow corrupting setWatch() (e.g. const D0 is not a Pin() object)
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.
Sun 2019.04.07
I see another possibility, Line 3
Although I was unable to locate the definition of
BTN
, these references use BTN1 as a string.Could
sensor
need the same? (e.g. is const sensor actually 0xD0 "D0" or D0)or is the substitution somehow corrupting setWatch()
(e.g. const D0 is not a Pin() object)
Didn't get much more from setWatch():
Not able to find a definition for 'pin' and what it's argument may contain.
but a Pin() object constructor on the other hand,