Learn how to use a Switch to control your Scratch program.

The second physical computing project.

Many programs that use a control block like "When key pressed" can be modified to use a physical button that you add to the Raspberry Pi through the GPIO pins. You can use a switch or button to create new games that test your reaction time or to create a game controller.

a button

Switch it on! - Click for Instructions