The_Official_Raspberry_Pi_-_Beginner’s_Book_Vol1,_2018 (1)

(singke) #1

128 THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE


3V3
GP2
GP3
GP4
GND
GP17
GP27
GP22
3V3
GP10
GP09
GP11
GND
DNC
GP5
GP6
GP13
GP19
GP26
GND

5V
5V
GND
GP14
GP15
GP18
GND
GP23
GP24
GND
GP25
GP8
GP7
DNC
GND
GP12
GND
GP16
GP20
GP21

5 Figure 6-2: Disconnect the wire from 3V3 and connect it to the GPIO 25 pin

You are now ready to create a Scratch or Python program to turn your LED on and off.

CODING KNOWLEDGE
The projects in this chapter need you to be comfortable
with using Scratch 2 and the Thonny Python integrated
development environment (IDE). If you haven’t already done so,
turn to Chapter 4, Programming with Scratch, and Chapter 5,
Programming with Python, and work through those projects first.
Free download pdf