Quantcast
Channel: Python GPIO not reading inputs - Raspberry Pi Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Meph88 for Python GPIO not reading inputs

Consider setting the GPIO pin as a pull up or pull down resistor.For example:GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_UP)That sets it as a pull up resistor meaning of it is exposed to ground it...

View Article



Image may be NSFW.
Clik here to view.

Python GPIO not reading inputs

Using a very simple input script to read a button press, Python GPIO isn't reading high when the button is pressed. The wiring is correct - I have checked it using wiringpi readall. Rpi. GPIO has been...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images