> 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/press-the-button-to-play-led-animation-meteor.md).

# Press the Button to play LED Animation Meteor

The programmable button of HaloCode has plenty of usage scenarios, such as activating a script. The four touchpads of HaloCode can report whether it is being touched via the change in capacitance.

1\. Drag an Events block when button is pressed and a Lighting block play LED animation () until done to the Scripts area. Choose LED animation "meteor". When we press the button of HaloCode, the LED animation "meteor" will be played.

![](/files/-Lpg69CNtu8cOy3zv4a2)

2\. Add a Control block repeat until () and a Sensing block touchpad () is touched?. Keep the default touchpad0.

![](/files/-Lpg69CO0_nBXVMaHo9z)

3\. Try pressing the button of HaloCode and then touch touchpad0.
