Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6857

Explorer phat inputs not working

$
0
0

@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 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

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6857

Trending Articles