User Manual
29
RPi.GPIO
If you are a Python user, you can program GPI Os with API prov ided by RPi.GPIO and use BCM
numbering method to control the GPI Os of Raspberry Pi. Please note that it differs from the
way that using wiringPi numbering method to control the GPIO on a Raspberry Pi in C
language.
Introduction
RPi.GPIO is a module to control Raspberry Pi GPI O channels. This package prov ides a class
to control the GPIO on a Raspberry Pi. For examples and documents, visit
http://sourceforge.net/p/raspberry-gpio-python/wiki/Home/.
Now the Raspbian Jessie 2016-05-27 has RPi.GPIO pre-instalLED, you can use it directly, too.
Test whether RPi.GPIO is installed or not:
Type in python to python CLI:
In Python CLI, Type in:
import RPi.GPIOimport RPi.GPIO
SunFounder