jwhitehorn / pi_piper

Event driven Raspberry Pi GPIO programming in Ruby
BSD 2-Clause "Simplified" License
694 stars 71 forks source link

Output pin turns back on after exit #75

Closed cbrewer97 closed 7 years ago

cbrewer97 commented 8 years ago

I was testing out the functionalities of the library with some LEDs and I noticed that even if it is explicitly turned off, when the program exits, the pin turns back on at a slightly lower power.

cbrewer97 commented 8 years ago

As it turns out, this happens even when the Pi is turned off (and is still plugged in to a power source). It also happens regardless of which library I use (I also tested Python's RPi.GPIO). It appears to have something to do with the Pi itself. My apologies.

elmatou commented 8 years ago

Without any pull up or down, the value of the pull can't be asserted, it is pretty common, and every circuit should have a pull-up or sink resistor on the GPIO.