I am using this node package:
to read the state of the gpio pins. I have got it working using pin 7 fine (the pin that all the examples use) but I can't seem to get it to work with any other pins. I have tried pin 11 and 13 also.
Is there something special about pin 7?
Pin 7 returns true when no wire is connecting it to ground and returns false when it is connected to ground.
All the other pins return false all the time.
I have tested on a pi 3 and a pi 4.
Really struggling to see what I am doing wrong here.
Thanks for any help.