Case 2 - Control the LEDs

Part 1   Objective

After you upload the program, the RGB LEDs blink and light up one by one.

7.gif

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

3.gif

4.gif

Part 3   Programming

  1. When you turn on CyberPi, the RGB LEDs are on and off alternatively.5.gif

  2. When you turn on CyberPi, the RGB LEDs light up one by one.6.gif

Part 4   Practice

  1. Try to change the color of the LEDs.

  2. Try to change the blinking frequency of the LEDs.

  3. Try to change the light-up sequence of the LEDs.

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

Comments

1 comment
  • what

     

    0

Please sign in to leave a comment.