We generate random values for red yellow and blue. We will see the different colors.
attrezzaggio
pin3˜ _RGBblue1
pin5˜ _RGBgreen1
pin6˜ _RGBred1
variabili
a = 0
b = 0
c = 0
ciclo
annotation: random colors
the variable
a becames equal to a casual number included between
0 e
255
the variable
b becames equal to a casual number included between
0 e
255
the variable
c becames equal to a casual number included between
0 e
255
MODULATION
_RGBred1 to the value:
a
MODULATION
_RGBgreen1 to the value:
b
MODULATION
_RGBblue1 to the value:
c
wait
500 milliseconds