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

Automation, sensing and robotics • Re: Help - GPIO Wiring & Script for Float Switch

$
0
0
Use gpioget from the gpiod package.

To read GPIOx with internal pull-up use:

Code:

gpioget --bias=pull-up gpiochip0 x
e.g.

Code:

$ gpioget --bias=pull-up gpiochip0 171
For the Pi5 change gpiochip0 to gpiochip4.

Statistics: Posted by warthog618 — Thu Mar 28, 2024 12:10 pm



Viewing all articles
Browse latest Browse all 4899

Trending Articles