' 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



esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
neopixels:DOUT
neopixels:VDD
neopixels:VSS
neopixels:DIN
sd1:CD
sd1:DO
sd1:GND
sd1:SCK
sd1:VCC
sd1:DI
sd1:CS
ring1:GND
ring1:VCC
ring1:DIN
ring1:DOUT