Case 1 - Control One RGB LED to Blink [Must-Know]

Case 1 - Control One RGB LED to Blink [Must-Know]

 

Part 1   Objective

After you upload the program, the first RGB LED on the xLight wooden base, LED strip, or LED string blinks once every second.

1.gif
2.gif
3.gif

Part 2   Preparation

  • xLight control box x 1

  • USB cable (Type-C) x 1

  • Computer with network access x 1

  • Wooden base or LED strip or LED string

Connect the wooden base, LED strip, or LED string to the xLight control box, connect the xLight control box to the computer by using the cable, open mBlock 5 (PC client, web version, or mobile app), delete the default device, click +add, select xLight from Device Library and then click Set as mostly used device in the upper left corner, click Connect, and select the Upload mode.

4.gif
5.gif
6.gif
7.gif

Part 3   Programming

  1. Write a program to make the first LED on the wooden base blink.

8.gif

  1. Write a program to make the first LED on the LED strip blink.

9.gif

  1. Write a program to make the first LED on the LED string blink.

10.gif

Part 4   Practice

  1. Try to change the light color of the RGB LED.

  2. Try to change the blinking frequency of the RGB LED.

 

 

 

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

Comments

0 comments

Please sign in to leave a comment.