Adventures In Raspberry Pi
Carrie Anne Philbin
Format: PDF / Kindle (mobi) / ePub
Coding for kids is cool with Raspberry Pi and this elementary guide
Even if your kids don't have an ounce of computer geek in them, they can learn to code with Raspberry Pi and this wonderful book. Written for 11- to 15-year-olds and assuming no prior computing knowledge, this book uses the wildly successful, low-cost, credit-card-sized Raspberry Pi computer to explain fundamental computing concepts. Young people will enjoy going through the book's nine fun projects while they learn basic programming and system administration skills, starting with the very basics of how to plug in the board and turn it on.
Each project includes a lively and informative video to reinforce the lessons. It's perfect for young, eager self-learners—your kids can jump in, set up their Raspberry Pi, and go through the lessons on their own.
- Written by Carrie Anne Philbin, a high school teacher of computing who advises the U.K. government on the revised ICT Curriculum
- Teaches 11- to 15-year-olds programming and system administration skills using Raspberry Pi
- Features 9 fun projects accompanied by lively and helpful videos
- Raspberry Pi is a $35/£25 credit-card-sized computer created by the non-profit Raspberry Pi Foundation; over a million have been sold
Help your children have fun and learn computing skills at the same time with Adventures in Raspberry Pi.
between directories or folders in the tree-like structure, you can use the cd (change directory) command. Try moving into the Desktop directory by typing cd Desktop at the prompt: pi@raspberrypi ~ $ cd Desktop A DV E N T U R E 2 TA K I NG CO M M A N D OF YO U R R A S P B E R RY P I 33 FIGURE 2-6 Using the text command ls -l to list more information about files and directories The next prompt from Raspberry Pi will read like this: pi@raspberrypi ~/Desktop $ Notice how ~/Desktop has
like the Apple App Store. Try typing the following command in a terminal and then pressing Enter: sudo apt-get install scrot Scrot (which is short for screen shot) is an application that enables you to take pictures of the display on your Raspberry Pi screen. The sudo apt-get command tells Raspberry Pi to use the Internet connection to find and install the application on your Raspberry Pi. This command requires sudo because by installing a new application you are asking the Raspberry Pi to
select New from the drop-down menu. Name the new broadcast message Level. FIGURE 3-18 Cave entrance portal sprite and script. Notice the counter block in the top left corner of the stage. A DV E N T U R E 3 C R E AT I N G S T O R I E S A N D G A M E S W I T H S C R AT C H DEFINIT S ION A broadcast message is used to coordinate the actions of different sprites and the stage. It keeps all the scripts running for each sprite and keeps the stage synchronized. In this case, when the Adventurer
; transporter2.z, block.DIAMOND_BLOCK) mc.postToChat(“2nd Transporter created”) time.sleep(2) 6. Create a while true loop to continually check the player’s position. If the player is positioned on the first transporter diamond block location, her location will be changed to where the second diamond block is located. If the player is positioned on the second transporter diamond block location, her location will be changed to where the first diamond block is located. while (True): time.sleep(1)
hear the MIDI note 49 play five times using the fm sound, and then the list of notes played twice using the pretty_bell sound. ADVEN T URE 7 CODING MUSIC WITH SONIC PI 161 The following list includes some different synths in Sonic Pi you can try out. • • • • • pretty_bell dull_bell fm beep saw_beep More sounds will be added to the Sonic Pi application in time, so be sure to watch for them and keep your Pi application packages updated using sudo apt-get update. Creating a Surprising