This tutorial from ScratchMyPi shows you how to use scratch and a raspberry pi to make LEDs light up:
Simon Walters at Cymplecy has modified Scratch so it can be used to control the GPIO pins.
In this tutorial, I will show you how to control the LEDs through Scratch and the Pi.
Install Scratch GPIO
Follow the instructions at Cymplecy to install Scratch GPIO on your computer. Once installed, start it up and you’ll see it looks similar to Scratch.
Equipment
Breadboard
Resistors (typically about 400 ohm)
LEDS
Wires – female to male
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!