I'm trying to use GPIO on my Beaglebone Black, but I'm running into some behavior I don't understand. I have two pins (gpios 27 and 61) configured to input with
active_low set to
0. There is nothing connected to either pin (or any pin on the board for that matter), but one of the pins (gpio 61) is showing a value of
1 while gpio 27 shows a value of 0.
Can anyone explain why this is happening?
Here are the exact steps I took to get this result:
echo 27 > /sys/class/gpio/export echo 61 > /sys/class/gpio/export echo in > /sys/class/gpio/gpio27/direction echo in > /sys/class/gpio/gpio61/direction cat /sys/class/gpio/gpio27/value 0 cat /sys/class/gpio/gpio27/active_low 0 cat /sys/class/gpio/gpio61/value 1 cat /sys/class/gpio/gpio61/active_low 0