Updated Script Cookbook (markdown)

gemu 2019-07-28 19:36:42 +02:00
parent e402decac2
commit 54f3126f6f
1 changed files with 5 additions and 5 deletions

@ -527,7 +527,7 @@ endif
#### Ledbar Display with WS2812 ledchain
used as display for solar house power input/output (+-5000 Watts)
>D
\>D
m:array=0 60 ;defines array for 60 led pixels
cnt=0
val=0
@ -547,13 +547,13 @@ max=5000
min=-5000
pos=0
>B
\>B
div=pixels/steps
=#prep
ws2812(array)
; ledbar is set from broker
>S
\>S
if ledbar<min
then ledbar=min
endif
@ -622,7 +622,7 @@ endif
array[cnt]=val
next
>R
\>R
------------------------------------------------------------------------------
#### Multiple IR Receiver Synchronization
@ -635,7 +635,7 @@ istr=""
ws="websend [192.168.178.84]"
; event section
>E
\>E
; get ir data
istr=IrReceived#Data