I’m trying to get a piece of code running on a seeeduuino XIAO that worked fine on an arduino uno.
Now i’m a bit stuck. Can somebody help me?
I’m working on an alarm which has a closed circuit. When that circuit is cut/disconnected there should be an alert.
On Arduino Uno i used this code:
int CIRC_pin = 4; // digital 4 as input pinMode(CIRC_pin, INPUT_PULLUP);
int CIRC_input_value = digitalRead(CIRC_pin);
On the Uno it gives me a zero when connected and a 1 when disconnected.
The Seeeduino gives me only zeroes all the time. Any idea why?
Any hints very welcome!