To install on raspbian: 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