Hardware Reference
In-Depth Information
Figure 9-2:
he PiFace
Emulator.
When you are inished lashing lights and trying the various options close the emulator.
You're now ready to program your Raspberry Pi to take control!
Interfacing with Python
You irst meet the Hello World program in Chapter 2, “Introductory Software Project: he
Insult Generator”. he hardware equivalent of Hello World is lashing a light, which similarly,
although not exciting in itself, is the irst step in getting a computer to start controlling the
world. After you've mastered this, there's no limit to what you can start controlling!
Turning a Light On
First, write the code to turn an LED on:
1. Double-click IDLE to begin entering code interactively.
 
Search WWH ::




Custom Search