From 1761a8746ba868e1a9359eafc7ca15216df61ea8 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Fri, 17 Jan 2020 21:08:36 -0800 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ca1db5c1..07c3dba5 100644 --- a/README.md +++ b/README.md @@ -47,15 +47,15 @@ Buttons adre described using a JSON string with the following syntax ``` Where (all parameters are optionals except gpio) - "type": (BUTTON_LOW) logic level when the button is pressed - "pull": (false) activate internal pull up/down - "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) - "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) - "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) - "longshifted": action to take when a button is long-pressed/released and shifted (see above/below) + -"type": (BUTTON_LOW) logic level when the button is pressed + -"pull": (false) activate internal pull up/down + -"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) + -"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) + -"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) + -"longshifted": action to take when a button is long-pressed/released and shifted (see above/below) Where is either the name of another configuration to load or one amongst ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY,