RPi.GPIO
RPi.GPIO Documentation and Tutorials
Here you’ll find an index of links to all the RasPi.TV RPi.GPIO tutorials.
RPi.GPIO Basics series
- How to check what RPi.GPIO version you have
- How to check what Raspberry Pi board Revision you have
- Finding Out Info about the Raspberry Pi you are using (RPi.GPIO 0.5.10 or higher)
- How to Exit GPIO programs cleanly, avoid warnings and protect your Pi
- Setting up RPi.GPIO, numbering systems and inputs
- Setting up and using outputs with RPi.GPIO
- Using inputs and outputs at the same time with RPi.GPIO, and pull-ups/pull-downs
- RPi.GPIO cheat sheet
RPi.GPIO more advanced
Interrupts (needs RPi.GPIO 0.5.2+)
- Background and simple interrupt: How to use interrupts with Python on the Raspberry Pi and RPi.GPIO
- Threaded callback: How to use interrupts with Python on the Raspberry Pi and RPi.GPIO – part 2
- Multiple threaded callback: How to use interrupts with Python on the Raspberry Pi and RPi.GPIO – part 3
- Edge Detection: Detecting both rising and falling edges with RPi.GPIO
- Port setup Function checking
- GPIO mode checking with GPIO.getmode()
Software PWM
From 0.5.2a onwards, RPi.GPIO has software PWM. Below are two links. One describes its basic usage and the other is a practical application for dimming LEDs and controlling motor speed.
- PWM: RPi.GPIO 0.5.2a now has software PWM – How to use it
- PWM practical: How to use soft PWM in RPi.GPIO 0.5.2a pt 2 – led dimming and motor speed control
Ben Croston’s official RPi.GPIO documentation can be found here
Other GPIO References
RasPi.TV’s RPi.GPIO Quick Reference
Matt Hawkins’ RPiRef Android App
RasPiO® GPIO Reference Aids
Our sister site RasPiO has three really useful reference products for Raspberry Pi GPIO work...