PROJECT 1 - SWITCHING LEDs

Objective: switch LEDs on and off and detect push-button switches

Uses: Python, GPIO library, Ciseco's Slice of Pi board

You will need: some LEDs, single core insulated wire, Ciseco's Slice of Pi PCB, resistors, push-button switches

GPIO pin assignments

Step 1

Assemble the components as shown in the circuit diagram.

Step 2

Download the program to your Pi. The easiest way to do this is to use wget.

wget http://www.noveldevices.co.uk/rpdl/led.py

Step 3

Run the program as root.

sudo python led.py