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