Case 7 - Button Control
Part 1 Objective
After you upload the program, you can press button A and B to control the RGB LEDs on CyberPi.
Part 2 Preparation
CyberPi x 1
USB cable (Type-C) x 1
Computer with network access x 1
Connect CyberPi to the computer by using the cable, open mBlock 5 (PC client, web version, or mobile app), connect CyberPi, and select the Upload mode.
Part 3 Programming
Press button A to light up the RGB LEDs, and press button B to light off the RGB LEDs.
Part 4 Practice
Besides controlling the RGB LEDs, what else can you control with the buttons?