Case 7 - Button Control

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.

1.gif

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.

2.gif
3.gif

Part 3   Programming

  1. Press button A to light up the RGB LEDs, and press button B to light off the RGB LEDs.

4.gif

Part 4   Practice

  1. Besides controlling the RGB LEDs, what else can you control with the buttons?

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.