Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3843

General discussion • Re: How to easily be able to use push buttons with GPIO

$
0
0
gpio=0-27=op,pu,dh,ip
You seem to have conflicting options there.

op = set to Output mode
pu = Enable internal Pull-Up (used for Input, pointless on Output)
dh = Set Output High
ip = Set to Input mode

I would have thought just gpio=0-27=ip,pu would do the job.

However, gpio 0 and 1 are reserved for HAT ID and PoE Fan control, so you wouldn't usually use those two unless you disable the HAT probe and PoE fan.

Statistics: Posted by rpdom — Fri Sep 06, 2024 10:54 pm



Viewing all articles
Browse latest Browse all 3843

Trending Articles