How to Define Button GPIO & Type in PlatformIO_Override.ini

HOW TO DEFINE BUTTON GPIO & TYPE

Reading a June 22 Reply to another Question, I find I can define (and comment) default LED pins in PlatformIO_Override.ini like this…

-D DATA_PINS=16,17,21,22 ;ESP32 GPIO for RGBIC Strips
-D PIXEL_COUNTS=28,28,28,28 ;LED count per strip
-D DEFAULT_LED_COUNT=112 ;?? Redundant?

HOW DO I DEFINE BUTTIONS???

Like this?

-D BTNPIN=15,26,36 ;ESP32 GPIO for Buttons 0,1,2
-D buttonType=Push,Push,Push ;Button Type
-D WLED_MAX_BUTTONS=3 ;?? Redundant?

I’m no expert in the code (not even close), but I don’t think there is a standardized default action for buttons.

If you explore through the usermods, you may get some ideas on what has been done so far, but this is still WIP territory.

I’ve noticed the MoonModule fork has a rather in depth discussion of the code in various places.
Take a look through the MM KB to get some good examples of how things are structured.

Those with more intimate knowledge of the code may feel free to stomp over all my comments as they see fit…

You might have luck using this and having a look at the code it generates. Maybe something in it will help. I dunno…

https://wled-compile.github.io/

Short answer: You can’t.
There is no provisioning for buttons.