Beaglebone GPIO always return 1
The pin has pullup, so when the switch pulls it to ground instead of 3.3v it functions well with the pullup. Before it was pulled to power and I was connecting it to power, so there was no measured difference.