If I made it with this, I get a fault, because both pins, start with 1, but are different ports.
>setWatch(function() {
: if(digitalRead(B1)) {
: print("fif");
: } else {
: print("faf"); }
:}, B1, {repeat:true,debounce:10});
=3
>setWatch(function() {
: if(digitalRead(B1)) {
: print("eie");
: } else {
: print("eae"); }
:}, A1, {repeat:true,debounce:10});
WARNING: Unable to set watch on pin. You may already have a watch on a pin with the same number.
=undefined
>
If I chance that line I get the error if I made 2 with the same pin nr. in jswrap_io.c
from:
if (!jsiIsWatchingPin(pin) && !jshCanWatch(pin)) {
to:
if (jsiIsWatchingPin(pin) && !jshCanWatch(pin)) {
But C is very difficult for me, so would it be possibly to check on the ports also?
It can wait to after the kickstarter is over.
It was on Espruino 1v72
I am still chasing the fault on my stm32f3discovery.
I am a big kickstarter fan of you.
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.
If I make setWatch twice or more, I get the function double or more, when I hit the button.
If I made it with this, I get a fault, because both pins, start with 1, but are different ports.
If I chance that line I get the error if I made 2 with the same pin nr. in jswrap_io.c
from:
to:
But C is very difficult for me, so would it be possibly to check on the ports also?
It can wait to after the kickstarter is over.
It was on Espruino 1v72
I am still chasing the fault on my stm32f3discovery.
I am a big kickstarter fan of you.