User Manual

25
Now, press the button, and the LED will light up; press the button again, and the LED will go
out. At the same time, the state of the LE D will be printed on the screen.
Summary
Through this experiment, you have learnt how to control the GPIOs of the Raspberry Pi by
programming.