Case 8 - Control the Joystick

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 or web version), connect CyberPi, and select the Upload mode.

6.gif

7.gif

Part 3   Programming

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

8.gif

Part 4   Practice

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

 

 

Was this article helpful?
2 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.