The_Official_Raspberry_Pi_-_Beginner’s_Book_Vol1,_2018 (1)
Chapter 6 Physical computing with Scratch and Python 141 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE Scratch project: Traffic Lig ...
142 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE switch in your circuit, is an input rather than an output: drag a set gpio to out ...
Chapter 6 Physical computing with Scratch and Python 143 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE This pattern matches that us ...
144 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE when clicked forever if not gpio^2 is high then set pushed to 1 This block stack ...
Chapter 6 Physical computing with Scratch and Python 145 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE Click the green flag, and wa ...
146 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE Python project: Quick Reaction Game Now you know how to use buttons and LEDs as i ...
Chapter 6 Physical computing with Scratch and Python 147 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE Start a new project in Thonn ...
148 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE def pressed(button): print(str(button.pin.number) + " won the game") Remember tha ...
Chapter 6 Physical computing with Scratch and Python 149 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE _exit( 0 ) The indentation i ...
150 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE 5 Figure 6-8: Once the winner is decided, the program exits Congratulations: you’ ...
Chapter 6 Physical computing with Scratch and Python 151 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE ...
152 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE T he Raspberry Pi comes with support for a special type of add-on board called Ha ...
Chapter 7 Physical Computing with the Sense HAT 153 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE While Ed and Izzy are a little fa ...
154 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE Gyroscope sensor: Used to sense changes in angle over time, technically known as ...
Chapter 7 Physical Computing with the Sense HAT 155 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE WARNING! Hardware Attached on Top ...
156 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE Hello, Sense HAT! As with all programming projects, there’s an obvious place to s ...
Chapter 7 Physical Computing with the Sense HAT 157 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE when clicked scroll message Hello ...
158 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE 5 Figure 7-4: This time the message scrolls vertically Now change the rotation ba ...
Chapter 7 Physical Computing with the Sense HAT 159 THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE Finally, click on the down arrow ...
160 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE Greetings from Python Load Thonny, in either simple or standard modes, by clickin ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf