Quantcast
Channel: Pimoroni Buccaneers - Latest posts
Viewing all articles
Browse latest Browse all 54395

Explorer phat inputs not working

$
0
0

I am trying to get python to read when I press a button with my explorer phat.
the code I am using is as follows

import 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


Viewing all articles
Browse latest Browse all 54395

Trending Articles