Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 103665

rpi.gpio refers to the package name of a Python module for accessing the Raspberry Pi's GPIO pins. NOTE not supported on Pi5. The module allows GPIO pins to be initialised, turned on, and turned off. It uses a functional programming style.

1 vote
1 answer
191 views

How Can I Determine Why My Python Script Is Terminating?

/usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down=GPIO.PUD_UP … /usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time import requests #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down …
rpseu's user avatar
  • 357
1 vote
1 answer
521 views

False Contact Closures - Do I Need Physical Pull Up Resistors to Resolve?

/usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down=GPIO.PUD_UP …
rpseu's user avatar
  • 357
4 votes
1 answer
2k views

How to Monitor GPIO Input Indefinitely Without Recursion

/usr/bin/env python import RPi.GPIO as GPIO import signal import socket import time import requests #Define GPIO pin here: thiscontact = 2 GPIO.setmode(GPIO.BCM) GPIO.setup(thiscontact, GPIO.IN, pull_up_down …
rpseu's user avatar
  • 357