' demo of ws2812 matrix displays scrolling message
' a complete help of Annex32 can be found here
' https://cicciocb.com/annex32help/V1.442/
NeoScroll.Setup 4, 1, 22, 1, 150, 8, 1 'Set 8 WS2812B displays with GPIO22 as input
NEOSCROLL.BRIGHTNESS 255
'Set the first message
NeoScroll.print "TRY Annex WiFi BASIC", "CMY GCRGB WRGB MYRGB"
'Set the next message
'NeoScroll.next "Hello World! Annex & WOKWI:A simple programming environment for a great simulator!!"
'NeoScroll.nextcolors "BYWRGBCMYRGB RRRRR Y WWWWWMG BYWRGB MYRGBBYWRGB MYRGBBYWRGB MYR B WRGBC RYRGBBYWRYY"
'Set the refresh rate of the display (30 msec) - lower values -> scroll faster
timer0 30, scrollme
wait
Scrollme:
'Scroll the display with an intensity of 5
NeoScroll.scroll
return