> For the complete documentation index, see [llms.txt](https://learn.pakronics.com.au/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.pakronics.com.au/halocode-1/code-with-mu-a-simple-python-editor/examples/basic-project/color-mixer.md).

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

![](/files/-Lpg5O76IisYU_HWDjPX)

**Introduction to HaloCode's touchpads**

HaloCode has four touchpads.

![](/files/-Lpg5O77owYDbeUVMVIo)

**Toggle on Upload mode**

Click to toggle on Upload mode

![](/files/-Lpg5O78S4ufz1ot-KCt)

**Program touchpads**

1\. Drag an Events block when HaloCode starts up to the Scripts area，and then add a Control block forever。

![](/files/-Lpg5O79N66lfav5MAku)

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

![](/files/-Lpg5O7AqMI_9IcLtGEd)

3\. Upload the program
