Hi,
I’m new here.
I have a RAK19007 which I have equipped with a RAK13011 (magnetic switch connected to GPIO1).
First, I’m a bit unsure how to map pins. The RAK13011 datasheet seems to indicate that the switch is connected to GPIO1 as well as GPIO1_1 (whatever that is???). So, my guess is that given the RAK translation table at the meshtastic web site, that corresponds to Arduino GPIO 17, right? So, in Meshtastic, you would use the mask 0x20000. Have I understood things correctly?
However, when I configure the remote hardware module ot use both pin 1 and pin 17 as digital inputs, I always get a ‘1’ on both inputs when reading from a local node.
So, I went about measuring the voltage on “IO1” and found that it is 3.2 V when the magnetic switch is open and 2.9 V when it is closed. So, in both cases logically “1”.
To me, this seems to indicate that the software has configured a pull-up resistor on that pin which shouldn’t be there, or that the pin is configured as an output.
What should I do about this?