A module to control Raspberry Pi GPIO channels. Provides a simple interface for digital input/output, PWM, and interrupt handling on the Raspberry Pi. Latest version 0.7.1; no longer actively maintained since the BCM2835 GPIO driver update. Works on all Raspberry Pi models but requires root. Uses BCM (Broadcom) pin numbering by default.
sudo pip install RPi.GPIONo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Blink an LED on BCM pin 18 using BCM numbering.
Run script with `sudo python script.py`.
Switch to gpiozero (high-level) or lgpio (low-level).
Add GPIO.setwarnings(False) after import and before any setup calls.
Use try/finally or atexit to ensure GPIO.cleanup() is called.
Run the script with sudo: sudo python your_script.py
Check platform before import: if platform.machine() not in ('armv7l', 'aarch64'): print('Not a Pi')Install with: sudo pip install RPi.GPIO
Add GPIO.setmode(GPIO.BCM) (or GPIO.BOARD) before any other GPIO calls.
No dependency data recorded yet.