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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg69CNtu8cOy3zv4a2%2F0.gif?generation=1569476879772487\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg69CO0_nBXVMaHo9z%2F1.gif?generation=1569476879765801\&alt=media)

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