Updated Button usage (markdown)

Michael Ingraham 2019-05-14 14:53:26 -04:00
parent 741866d109
commit d019be44ca
1 changed files with 6 additions and 3 deletions

@ -23,9 +23,12 @@ Restarts the device.
### 7 short presses ### 7 short presses
Start OTA update of firmware using [OtaUrl](commands#otaurl). The green LED is lit during the update. Start OTA update of firmware using [OtaUrl](commands#otaurl). The green LED is lit during the update.
### **Pressing the button for over 40 seconds** ### **Button long press**
Resets the device to firmware defaults and restarts it. Tasmota interprets a button long press according to the setting of [SetOption32](Commands#setoption32) _(default = 40)_. There are two separate functions associated with a long press based on the duration:
>:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function. - A HOLD action occurs when when the button is pressed for SetOption32 x 0.1 seconds and released.
- When the button is held continuously and released after SetOption32 x 1 seconds, Tasmota will reset the device back to firmware defaults and restarts it.
>:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function.
## [ButtonTopic](Commands#ButtonTopic) ## [ButtonTopic](Commands#ButtonTopic)