mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
Update README.md
This commit is contained in:
18
README.md
18
README.md
@@ -47,15 +47,15 @@ Buttons adre described using a JSON string with the following syntax
|
|||||||
```
|
```
|
||||||
|
|
||||||
Where (all parameters are optionals except gpio)
|
Where (all parameters are optionals except gpio)
|
||||||
"type": (BUTTON_LOW) logic level when the button is pressed
|
-"type": (BUTTON_LOW) logic level when the button is pressed
|
||||||
"pull": (false) activate internal pull up/down
|
-"pull": (false) activate internal pull up/down
|
||||||
"long_press": (0) duration (in ms) of keypress to detect long press, 0 to disable it
|
-"long_press": (0) duration (in ms) of keypress to detect long press, 0 to disable it
|
||||||
"debounce": (0) debouncing duration in ms (0 = internal default of 50 ms)
|
-"debounce": (0) debouncing duration in ms (0 = internal default of 50 ms)
|
||||||
"shifter_gpio": (-1) gpio number of another button that can be pressed together to create a "shift". Set to -1 to disable shifter
|
-"shifter_gpio": (-1) gpio number of another button that can be pressed together to create a "shift". Set to -1 to disable shifter
|
||||||
"normal": ({"pressed":"ACTRLS_NONE","released":"ACTRLS_NONE"}) action to take when a button is pressed/released (see below)
|
-"normal": ({"pressed":"ACTRLS_NONE","released":"ACTRLS_NONE"}) action to take when a button is pressed/released (see below)
|
||||||
"longpress": action to take when a button is long-pressed/released (see above/below)
|
-"longpress": action to take when a button is long-pressed/released (see above/below)
|
||||||
"shifted": action to take when a button is pressed/released and shifted (see above/below)
|
-"shifted": action to take when a button is pressed/released and shifted (see above/below)
|
||||||
"longshifted": action to take when a button is long-pressed/released and shifted (see above/below)
|
-"longshifted": action to take when a button is long-pressed/released and shifted (see above/below)
|
||||||
|
|
||||||
Where <action> is either the name of another configuration to load or one amongst
|
Where <action> is either the name of another configuration to load or one amongst
|
||||||
ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY,
|
ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY,
|
||||||
|
|||||||
Reference in New Issue
Block a user