I checked with multimeter the voltage values on both pins and they aren’t at 3.3V as I expected. Then I tried to set them as input_pulldown but measuring again I don’t get the equivalent of 0V, comparing with AIN1 which works perfect. I understand that these pins are used to configure another part of the hardware, but I don’t know if I have to make any previous settings to be able to use them?
On WB_IO2, a low reading is possible due to the fact that some Base Board versions have a pulldown resistor. It depends on what variant of load switch is controlled by WB_IO2.
WB_IO1 works as expected with this code:
Thanks for your reply @beegee , i tested the example code posted and this is my terminal output:
Setting IO's with pull-down
Reading IO's
WB_IO1: LOW
WB_IO2: LOW
Setting IO's with pull-up
Reading IO's
WB_IO1: LOW
WB_IO2: LOW
Setting IO's with pull-down
Reading IO's
WB_IO1: LOW
WB_IO2: LOW
Setting IO's with pull-up
Reading IO's
WB_IO1: LOW
WB_IO2: LOW
Setting IO's with pull-down
Reading IO's
WB_IO1: LOW
WB_IO2: LOW
It seems that it is not possible to enable pull-up, my board model is RAK19007 Rev B and I’m using 3-axis sensor (1904) and enviroment sensor (1905) in slot A and B.