Thanks for the reply @allObjects - So I did a quick test, hooked up via I2C and instantiated as "port". Tried:
setWatch(function(){print("test")},port.A0,{repeat:true,edge:'both'});
Got an error:
ERROR: Invalid pin
I suspect that the virtual pin is not compatible with the Pin() object the setWatch function expects...
Or, did you meant hooking up setWatch differently?
@n00b 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.
Thanks for the reply @allObjects - So I did a quick test, hooked up via I2C and instantiated as "port". Tried:
Got an error:
I suspect that the virtual pin is not compatible with the Pin() object the setWatch function expects...
Or, did you meant hooking up setWatch differently?