mirror of https://github.com/arendst/Tasmota.git
Updated Script Cookbook (markdown)
parent
54f3126f6f
commit
82f021809a
|
@ -704,19 +704,19 @@ istr=""
|
|||
|
||||
#### Fast Polling
|
||||
; expand strings to hold websend
|
||||
>D 25
|
||||
\>D 25
|
||||
sw=0
|
||||
ws="websend [192.168.178.86]"
|
||||
timer=0
|
||||
hold=0
|
||||
toggle=0
|
||||
|
||||
>B
|
||||
\>B
|
||||
; gpio 5 button input
|
||||
spinm(5,0)
|
||||
|
||||
; fast section 100ms
|
||||
>F
|
||||
\>F
|
||||
sw=pin[5]
|
||||
; 100 ms timer
|
||||
timer+=1
|
||||
|
@ -760,7 +760,7 @@ endif
|
|||
|
||||
#### Switching By Recognizing Mains Power Frequency
|
||||
[#6085 (comment)](../issues/6085#issuecomment-512353010)
|
||||
>D
|
||||
\>D
|
||||
sw1=0
|
||||
sw2=0
|
||||
cnt1=0
|
||||
|
@ -770,10 +770,10 @@ timer2=0
|
|||
toggle1=0
|
||||
toggle2=0
|
||||
|
||||
>B
|
||||
\>B
|
||||
=>print "WiFi 2-Gang Switch Script"
|
||||
|
||||
>F
|
||||
\>F
|
||||
; Counter1/2 and Relay1/2 configured in template
|
||||
cnt1=pc[1]
|
||||
cnt2=pc[2]
|
||||
|
|
Loading…
Reference in New Issue