Case 8 - Joystick Control

Case 8 - Joystick Control

Part 1   Objective

After you upload the program, you can control the brightness of the RGB LEDs with the joystick.

5.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.

6.gif
7.gif

Part 3   Programming

  1. Toggle the joystick up and down to control the brightness of the RGB LEDs.

8.gif

Part 4   Practice

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

 

 

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

Comments

0 comments

Please sign in to leave a comment.