I recieved some RGB LEDs recently, but my 18M2 only has 2 pins capable of PWM. I wrote this code to cycle through the colors. Is there a better way? :)
let dirsB =%11111111
main:
let pinsB =%00100010
pwmout B.6,150,0
pwmout B.3,150,255
'red out green in
for b0 = 255 to 0 STEP -1
let b1 = 255...