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

6__2_.gif

7__1_.gif

Part 3   Programming

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

8__1_.gif

Part 4   Practice

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

 

 

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

Comments

0 comments

Please sign in to leave a comment.