Description: 
Attach red to motor A, green to motor B, and blue to motor C.
This code will have the LED cycle through six colors.
to red
a, on
b, off
c, off
a, setpower 8
end
to orange
a, on
b, on
c, off
a, setpower 8
b, setpower 4
end
to yellow
a, on
b, on
c, off
a, setpower 8
b, setpower 8
end
to green
a, off
b, on
c, off
b, setpower 8
end
to blue
a, off
b, off
c, off
c, setpower 8
end
to purple
a, on
b, off
c, on
a, setpower 8
c, setpower 8
end
to white
a, on
b, on
c, on
a, setpower 8
b, setpower 8
c, setpower 8
end
|