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)
|
||||
if ledbar>0
|
||||
then
|
||||
pos+=(pixels/2);
|
||||
pos+=(pixels/2)
|
||||
if pos>pixels-1
|
||||
then pos=pixels
|
||||
endif
|
||||
|
@ -598,7 +598,7 @@ then
|
|||
ws2812(array)
|
||||
endif
|
||||
|
||||
|
||||
; subroutine for grid
|
||||
#prep
|
||||
for cnt 1 pixels 1
|
||||
ind+=1
|
||||
|
@ -619,7 +619,6 @@ then val=colg1
|
|||
else val=colg2
|
||||
endif
|
||||
endif
|
||||
;->print %cnt% %tog%
|
||||
array[cnt]=val
|
||||
next
|
||||
|
||||
|
|
Loading…
Reference in New Issue