Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
48 www.uctronics.com
6. How to use the wiringPi and the RPi.GPIO
Here we take a blinking LED for example to illustrate how to use the wiringPi C library and
the RPi.GPIO Python module.
Step 1 : Build the circuit according to the following schematic diagram
Note
: Resistance=220Ω
For Python user:
Step 2 : Create a file named led.py
$ sudo touch led.py
Step 3 : Open the file led.py with vim or nano
$ sudo vim led.py
Write down the following source code, then save and exit.