mirror of https://github.com/arendst/Tasmota.git
Updated Button usage (markdown)
parent
d019be44ca
commit
65aa205631
|
@ -23,12 +23,12 @@ Restarts the device.
|
|||
### 7 short presses
|
||||
Start OTA update of firmware using [OtaUrl](commands#otaurl). The green LED is lit during the update.
|
||||
|
||||
### **Button 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:
|
||||
- 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.
|
||||
### **Long press**
|
||||
There are two separate functions associated with a button long press based on how long it is held:
|
||||
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.
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue