This example is a simple program that shows a scrolling message on 8 8x8 dot matrix display and 4 8x8 WS2812 neopixels.
Both works in parallel with 2 different scrolling methods.
The video at the right shows the result.
CODE: example3.bas
neoScroll.setup 4,15 maxScroll.Setup 8, 16 spi.setup 1000000
maxscroll.print time$
neoScroll.print "HELLO WORLD!" neoScroll.colors "CMYRGCRGBYWRGBCMYRGBGRBRGBM" neoScroll.next "TRY Annex WiFi BASIC" neoScroll.nextColors "CMYRGCRGBYWRGBCMYRGBGRBRGBM"
timer0 40, scroll_me
timer1 500, update_time
wait
update_time: maxScroll.text time$ return
scroll_me: maxScroll.Oscillate 15 neoScroll.Scroll 25 return
end
|