-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
I'm using pin 4 (gpio 4) with this simple code:
require "pi_piper"
pin = PiPiper::Pin.new(:pin => 4, :direction => :in)
loop do
puts pin.value
sleep 0.1
end
I use a jumper and connect it to gpio4 and 3.3V (top-left).
It always shows a 0. If I change the jumper to GND (bottom-left), I also get a 0.
Reading the values from /sys/..., it shows correctly a 1 or 0, but the pi_piper script will always show a 0.
What's wrong? (I'm using pi_piper 2.0)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
