' demo of ws2812 matrix displays scrolling message
' a complete help of Annex32 can be found here
' https://cicciocb.com/annex32help/V1.442/

NeoScroll.Setup 8, 22 'Set 8 WS2812B displays with GPIO22 as input
'Set the first message 
NeoScroll.print  "TRY Annex WiFi BASIC"
NeoScroll.colors "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 255
return