I have two switches, one connected to A1 and the other to C1.
If I set watch for only one of the pins, it works as expected. But if I set watch for both pins, then the 2nd setWatch seem to kill the 1st.
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,
I have two switches, one connected to A1 and the other to C1.
If I set watch for only one of the pins, it works as expected. But if I set watch for both pins, then the 2nd setWatch seem to kill the 1st.
setWatch(onWatch, A1, { repeat:true, edge:"rising" });
setWatch(onWatch, C1, { repeat:true, edge:"rising" });
Is this as expected? i.e. there is limitation of pin combinations?
I have tried some other pin combinations and "B8, B4, B3, B2" worked fine.
Espruino 1v61
Br, Shunya