setWatch "false" trigger ? #969
Replies: 9 comments
-
Posted at 2018-02-20 by user85862 I used 1V95 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by user85862 Corrected code. I used the same var for both setWatches.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by user85862 Still triggers both Watches. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by @gfwilliams That's odd - does it happen repeatedy, or just that first time? Also, are the buttons pulling up to 3.3v, or a higher voltage? The pins should be 5v tolerant but I've noticed that if the pins are over-volted, it can actually start to cause other pins to read a voltage as well. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by user85862 It happen each time. Very easy setup. Connected the PIN 3.3v to the butten or switch and then to A1 (Btn1) and A4 (Btn2). Sacha |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by user85862 It triggers "false" on the other pin. This is the right value. But i do not wan't this information, because that is the current unchanged state. There is a workaround. I will remember the states and ignore the same value. Sacha |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by @gfwilliams It's strange. I just wired this up on a board here and it works great - with absolute latest and 1v95 firmware... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by Sacha Ups. Hmmm. Have several EspruinoWifi's will check it again with a differnt one. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-21 by user85862 Flashed 1V96, same result. Even on another EspruinoWifi. Sacha |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-20 by user85862
Hello Gordon
On the EspruinoWifi. Two buttons connected:
3.3v -> A1
3.3v -> A4
Code:
When i push the button on A4 or A1 i also get a callback on the other watch.
Output, pressed button connected on A4:
I expected only receive a setWatch callback from A4.
Thanks
Sacha
Beta Was this translation helpful? Give feedback.
All reactions