Scratch ● Drag & drop block interface to programming ● Logic ● Computational thinking ● Easy to make games ● Impossible to create a program that fails to run! ● Recommended for young children
Python ● Powerful extensible programming language ● Easy to read and write ● Make software, games, GUIs, websites, robots and more ● Ideal for physical computing ● Extensive library of additional modules for Raspberry Pi hardware ● Recommended for education
Minecraft: Pi Edition ● Free version of Minecraft on Raspberry Pi ● Python programming interface ● Learn Python by building things and making games in Minecraft ● Creative computing
Python library - RPi.GPIO ● Included in Raspbian ● Features: – Configure pins as input/output – Read inputs (high/low) – Set outputs (high/low) – Wait for edge (wait for input to go high/low) – Pin event detection (callback on input pin change)
Flash LED with Python from RPi import GPIO from time import sleep GPIO.setmode(GPIO.BCM) led = 2 GPIO.setup(led, GPIO.OUT) while True: GPIO.output(led, True) sleep(1) GPIO.output(led, False) sleep(1)