Updated Button usage (markdown)

blakadder 2019-05-14 23:14:08 +02:00
parent d019be44ca
commit 65aa205631
1 changed files with 5 additions and 5 deletions

@ -23,12 +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.
### **Button long press** ### **Long press**
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: There are two separate functions associated with a button long press based on how long it is held:
- A HOLD action occurs when when the button is pressed for SetOption32 x 0.1 seconds and released. 1. When held continuously for 40 seconds (Configurable with [SetOption32](commands#setoption32), value is 10x the configured hold time) Tasmota will reset to firmware defaults and restart.
- 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. 2. If enabled, button pressed for 4 seconds creates a HOLD action (Configurable with [SetOption32](commands#setoption32)). Check [table below](#changing-default-button-functionality)on how to enable this function.
>:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function. >:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates the reset to firmware defaults function. Change the button to switch or change switchmode to avoid it.
## [ButtonTopic](Commands#ButtonTopic) ## [ButtonTopic](Commands#ButtonTopic)