Im using RAspberry to control Adafruits Neotrellis button/led board https://learn.adafruit.com/adafruit-neotrellis
Im trying to read the interupt wire on the neotrellis board with this code:
Code: Select all
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) INPUT_PIN = 4 GPIO.setup(INPUT_PIN, GPIO.IN) while True: if (GPIO.input(INPUT_PIN) == True): print('1') else: print('0')
But I get a stream of ones from the beginning, and nothing changes when I press a button.
Any idea? Not a programmer, as you can see.