Physical button

So I’ve seen a lot of videos using buttons to scroll through presets. However with the release of .14 I can’t find the place to make it happen. I found where to set tap, double tap and hold , but I want the button to scroll through presets. I’m using an esp32 and wled 0.14

Make a preset for example {“ps”:“1~17~”} to Cycle 1 to 17

Where do I Input the 1~17 . All I can find is places to input numbers only.

in a preset like this


@Ryanb907

So I did this and when I click on the preset I built as you showed it in the app it does indeed scroll through whatever number of presets I typed in . But when I map the button to it it does nothing. I feel like we are very close to what I am hoping for. If I map the button to any of my other presets it does work

I have tried with button 0 ( gpio0 is normally available on the MCU board ) and it is working , try to push harder

Ok, I am using button 0 for on off control, I will try using it for what we are talking about. It’s at my mom’s house so have to wait to try. I will update if this fixes my issue. I appreciate your assistance.

Sure and if the setup for regular users then you might consider adding IR remote

I did include the 44key remote, while I can’t get all of the buttons to do what I want just yet, the diy buttons and color control buttons function. Still learning. Hopefully with the help of people like you and research I will get it down pat


This was my most recent project.

Looks good , you can customize the remote as per the info here Infrared - WLED Project .

So I found that page already, but I’m not sure how to load that into my esp . I downloaded a program called Arduino ide I think. Haven’t started trying to learn (getting frustrated) that yet. Is that program good to load the json stuff? Or is there a better way to do it?

You just load the ir,json for your specific remote in this page
image

So I’m super new to this. I did try and set it to json . Even went to that other page you suggested copied the json text for my remote and tried without success to upload it. That’s where I’m currently stuck. I don’t know how to upload the file to my controller.

You can do it in multiple ways and listing only two of them , i do not have the same remote but the smaller ones , you can also edit the ir.json file for more customization but normally the default is fine

I may have that wrong , and you are correct , it cycle if you click on the preset but when I use {“ps”:“1~17~”} in a preset pushing on the button does not cycle through presets but i see this preset selected in ui but does not seems to be activated by button , if we make a presets of other effects then button will work , Might be @blazoncek could tell what is the correct way to do it as I am a bit lost

Okay at least there is win&PL=~&P1=1&P2=4 will work with buttons , i think there might be a bug with using {“ps”:“1~17~”}

Yes, most likely a bug. Please open a GH issue.

Sure i will

So are you saying if I put: win&PL=~&P1=1&P2=4 my button will scroll through presets?

Yeah for sure now this win&PL=~&P1=1&P2=4 will work During my initial test I have used {“ps”:“1~4~”} with solid color presets and that seem to change the colors but not really the preset . we have submitted a bug report for json format as the dev above mentioned