Color Mixer

 

Change the color of the LED ring by RGB values. We'll use touchpad 0, 1, and 2 to control each of the values.

 

1.png

 

Introduction to Halocode's touchpads

Halocode has four touchpads.

2.png

 

Toggle on Upload mode

Click to toggle on Upload mode

4.gif

 

Program touchpads

1. Drag an Events block when Halocode starts up to the Scripts area,and then add a Control block forever

5.gif

 

2. Add a Lighting block light up all LEDs with color R()G()B()and three Sensing blocks touchpad () value. Choose touchpad 0, 1, and 2

6.gif

 

3. Upload the program

Download code


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

Comments

0 comments

Please sign in to leave a comment.