Why teach computing to kids and teens?
Hardware
Software
Connect like an LED but without a resistor
Raspberry Pi Configuration
> raspistill -o pic.jpg
Take a picture - by default waits 5 seconds
> gpicview pic.jpg
View the picture
> raspistill
See all the command options
Image Effect mode options :
negative, solarise, sketch, denoise, emboss, oilpaint, hatch, gpen, pastel, watercolour, film, blur, saturation, colourswap, washedout, posterise, colourpoint, colourbalance, cartoon
> raspistill -ifx sketch -o sketch.jpg
Example:
Python shell on the left
Click on File -> Then New File to create a
project on the right
from gpiozero import TrafficLights
Setup the GPIO
lights = TrafficLights(9, 10, 11)
Setup the traffic lights: red, amber, and green
lights.blink()
Blink the traffic lights
CTRL-S to save
Function key F5 to run
from time import sleep
Add delays
while True:
lights.green.on()
sleep(1)
lights.amber.on()
sleep(1)
lights.red.on()
sleep(1)
lights.off()
sleep(1)
Make a light sequence loop
http://raspberrypi.org/
See us for a free
GPIO Plus reference
board and stickers
Eric and Hayden
@LowVoltageLabs