To install on raspbian:
1 |
apt-get -y install python-rpi.gpio |
raspberry-gpio-python package provides a class to control the GPIO on a Raspberry Pi. To get started with RPi.GPIO, it would be worthwhile reading the examples here. Note that this module is unsuitable for real-time or timing critical