Instructions

The program
20wuerfel
controls the LED dice
21. Day
RGB light control panel
The experiment of the 21st day offers various light effects with three RGB-LEDs. The colours and effects can be switched on interactively on the
screen.
Components: 1 x plug board, 3 x RGB LED, 9 x 220-Ohm resistor, 2 x wire bridge (connection wide), 10 x connection cables
The program
The program uses five variables that can be set via controllers on the stage. With the variables
r
,
g
and
b
, the user can interactively switch the
three colour components on and off. The variable
z
specifies the waiting time between flashing of two subsequent LEDs. The variable
e
specifies
the time at the end of a loop until the first LED lights up again.
In an endless loop, the three GPIO-pins
of one RGB-LED are set to the specified colour values, and the three GPIO-pins of the previously lit RGB-
LED are switched off.










