You are reading a single comment by @AkosLukacs and its replies.
Click here to read the full conversation.
-
That is a limitation of the microcontroller:
You can't setWatch on two pins with the same number (eg. A5 and C5) - this is a limitation of the STM32F1
From the Known problems section in the Original Espruino Board's docs.
Hi,
I'm workin on a project.
I need to scan 8 external buttons.
Therefore I use the setWatch function.
But it looks like the Espruino can't handle 8 setWatch functions.
If I disable (make a comment of it) a few setWatch, then it is working fine for these buttons.
The pins I used are C7, C8, C9, C10, C11, A8, A9 ad A10
Tis is the setWatch line
The other pin of the button is connected to the GND
Regards
Peter