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 36368

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.

12 votes

How to correctly install the python RPi.GPIO library

Assuming you have pip, the python package index installer, which is installed on the latest versions of Raspbian by default You can use: sudo pip install RPi.GPIO for Python 2 and sudo pip-3.2 install … RPi.GPIO for Python 3 …
brainiak4431's user avatar
2 votes
Accepted

GPIO High Low not switching in Python

Additionally there is an exception being thrown, presumably the warning message from RPi.GPIO about pin 2 being a pull up resistor. To fix this all the sys.exit() should be changed to os._exit(1) …
brainiak4431's user avatar
3 votes
2 answers
3k views

GPIO High Low not switching in Python

/usr/bin/env python3 # -*- coding:utf8 -*- # Import required Python libraries import RPi.GPIO as GPIO # used for controlling GPIO pins import os # used for getting file path import logging # used for …
brainiak4431's user avatar