Case 7 - Control the buttons

Part 1   Objective

After you upload the program, you can press button A and button 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 or web version), connect CyberPi, and select the Upload mode.

2.gif

3.gif

Part 3   Programming

Press button A to turn on the RGB LEDs, and press button B to turn off the RGB LEDs.

4__4_.gif

Part 4   Practice

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

 

 

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

Comments

0 comments

Please sign in to leave a comment.