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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
