Updated Script Cookbook (markdown)

gemu 2019-07-28 19:35:14 +02:00
parent 2cb0205d31
commit e402decac2
1 changed files with 88 additions and 89 deletions

@ -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