Hardware Reference
In-Depth Information
CHALLENGE
What other functionality could you add to this game? Here are some ideas:
Costumes for the marshmallow sprite so that when the button is
pressed it becomes animated.
A Stage background with a Game Over screen. This would also
require scripts to broadcast a message, like the one for the
Adventurer Game in Adventure 3.
A scoreboard for the highest number of presses.
You could also make a similar game using Python.
Further Adventures with GPIO
Pins
As you can see, programming the GPIO pins on the Raspberry Pi opens a Pandora's
box of opportunity. With a little electronics know-how and some imagination you
can control lots of things in the real world. he Raspberry Pi website ( www.
raspberrypi.org ) is full of great examples of how people are controlling their envi-
ronments with their Pis.
Now that you have learned how to combine some basic electronics powered and com-
manded by the Raspberry Pi you may want to continue learning more. Here are some
resources to take you further:
Alex Eames' website RasPi.TV has an RPi.GPIO basics set of tutorials:
http://raspi.tv/category/raspberry-pi
If you want to learn how to control the Raspberry Pi GPIO pins using Scratch,
Simple Si's blog has some great ideas: http://cymplecy.wordpress.
com/2013/04/22/scratch-gpio-version-2-introduction-for-
beginners
To learn more about electronic projects and using the Raspberry Pi GPIO pins,
the Adafruit Learning System is a great platform to start with: http://learn.
adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup
Search WWH ::




Custom Search