Closed Domigome closed 1 month ago
Found out the solution, there is not a field for that (which I highly recommend to have one by default), you need to create it and then point to it:
button_mapping
(or your preferred key name) as name in 'new key' field.[{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{"gpio":18,"pull":true,"normal":{"pressed":"ACTRLS_VOLUP"}},{"gpio":23,"pull":true,"normal":{"pressed":"ACTRLS_VOLDOWN"}},{"gpio":19,"pull":true,"normal":{"pressed":"ACTRLS_NEXT"}},{"gpio":13,"pull":true,"normal":{"pressed":"ACTRLS_PREV"}},{"gpio":36,"pull":true,"normal":{"pressed":"ACTRLS_NONE"}}]
button_mapping
(or your key name if you did choose another one.)Done!
This will use the ESP32 Audio Kit v2.2 keys like follows:
I think it would be nice to write this on the Readme plus having some default settings or key-values on place.
To help us resolve your issue as quickly as possible, please follow these guidelines when submitting an issue. Providing all the necessary information will save both your time and ours.
Describe the bug
I was trying this wonderful project and run into this doubt, not very sure where to paste the button mapping provided in the Readme. I have flash the device with the web installer, set the Wi-Fi, choose the board type pre-set (ES8388 set 1) in the configuration, enter the GPIO in the NSV configuration, but so far I fail to find the button mapping.
Any lead? (this issue also asked about it, but not clear answer given https://github.com/sle118/squeezelite-esp32/issues/308)
Preliminary Information
Hardware Details
Please describe your hardware setup:
Issue Description