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