@pi2003 wrote:
I am trying to get python to read when I press a button with my explorer phat.
the code I am using is as followsimport explorerhat as eh
while True:
state =eh.input.one.read()
print(state)and I have wired up my button so one leg is going to ground and the other to input one
when I run the code 0's fill up the screen but when I press the button the 0's continue
Any help would be much appreciated
Posts: 5
Participants: 3