That is not so hard let me help ya;
Code:
main:
for rainbowval = 0 to 255
for a = 1 to 100
gosub rbgrainbow
next a
next rainbowval
for rainbowval= 255 to 0 step - 1
for a = 1 to 100
gosub rbgrainbow
next a
next rainbowval
goto main
of course you have to adjust the value's and you have to create the variable "A" (if your gone use high value's create a word size variable)
Edit: you could also let a timer run in the background that keeps sending the pwm signals and change the value's in the mainloop
Bookmarks