# Looking for help with button actions

**URL:** <https://wled.discourse.group/t/looking-for-help-with-button-actions/2863>\
**Category:** Questions\
**Created:** [May 9, 2021, 2:52am UTC](https://wled.discourse.group/t/looking-for-help-with-button-actions/2863 "2021-05-09T02:52:04Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![dgk](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dgk/32/1852_2.png) [@dgk](https://wled.discourse.group/u/dgk)\
**Post date:** [August 16, 2021, 6:04pm UTC](https://wled.discourse.group/t/looking-for-help-with-button-actions/2863/9 "2021-08-16T18:04:06Z")

</div>

Well I found the solution in an issue. The syntax is close.

> <https://github.com/Aircoookie/WLED/issues/1619#issuecomment-884626675>
>
> I want to put a flashing row of LEDs to my son's bike. It would be really nice …to set some preset patterns and then wire a button to cycle through the presents (No WiFi on the road).  
> 
> Is that possible without me having to change the code?
> 
> I would guess it does it on one of the spare inputs but cannot see anything in the documentation.

put `win&P1=1&P2=4&PL=~` in a preset (in your case in 51), then set that id to short and id for preset that has `T=2` to long press.

Really this issue is there is no documenation for the API and its syntax.

---

_[View the full topic](https://wled.discourse.group/t/looking-for-help-with-button-actions/2863)._
