mirror of https://github.com/arendst/Tasmota.git
Updated Script Cookbook (markdown)
parent
2cb0205d31
commit
e402decac2
|
@ -565,7 +565,7 @@ endif
|
||||||
pos=(ledbar/max)*(pixels/2)
|
pos=(ledbar/max)*(pixels/2)
|
||||||
if ledbar>0
|
if ledbar>0
|
||||||
then
|
then
|
||||||
pos+=(pixels/2);
|
pos+=(pixels/2)
|
||||||
if pos>pixels-1
|
if pos>pixels-1
|
||||||
then pos=pixels
|
then pos=pixels
|
||||||
endif
|
endif
|
||||||
|
@ -598,7 +598,7 @@ then
|
||||||
ws2812(array)
|
ws2812(array)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
; subroutine for grid
|
||||||
#prep
|
#prep
|
||||||
for cnt 1 pixels 1
|
for cnt 1 pixels 1
|
||||||
ind+=1
|
ind+=1
|
||||||
|
@ -619,7 +619,6 @@ then val=colg1
|
||||||
else val=colg2
|
else val=colg2
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
;->print %cnt% %tog%
|
|
||||||
array[cnt]=val
|
array[cnt]=val
|
||||||
next
|
next
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue