Hardware Reference
In-Depth Information
GPIO Pins Command Quick Reference Table
Command
Description
Checks the revision number of the Raspberry
Pi board you are using.
import RPi.GPIO as GPIO
GPIO.RPI_REVISION
import RPi.GPIO as GPIO
Imports the Raspberry Pi GPIO module.
GPIO.setmode(GPIO. mode )
Sets the numbering mode of the GPIO pins,
either BCM or BOARD .
GPIO.setup( GPIO number , GPIO.OUT)
Sets a GPIO pin as either input or output.
Achievement Unlocked: Conquering electronics with a Raspberry Pi!
In the Next Adventure
The inal adventure in this topic is a humongous Raspberry Pi project. It draws
on all the computational skills you have learned on your Pi journey so far, to
enable you to make a Pi Jukebox with LCD display, Play, Stop and Skip
buttons—and a box! It will also involve acquiring extra parts for your Raspberry
Pi, like an LCD screen. The project may seem intimidating at irst, but as with all
challenging endeavors, you will feel triumphant when it is completed.
Search WWH ::




Custom Search