Instructions

The program
13rgb2
makes two RGB-LEDs flash alternatingly.
14. Day
Crab crawling
The experiment of the 14th day is a quick game on the screen that is placed with a small game pad with two buttons. In this game, a crab runs
on a round course and should veer off of the path as little as possible.
The crab crawls forward on its own. You can use the buttons to turn the crab to chance the direction in which it crawls.
Components: 1 x plug board, 2 x button, 1 x wire bridge (connection wire), 3 x connection cables
The program
When clicking the green vane, the crab is put in the starting position and the error counter is reset to 0. This starts an endless loop in which the
crab moves a small step at each pass.
Then a check is performed whether the red or green claw of the crab touches the white background. In this case, the crab has veered off of its
path and an error point will be assigned.
Two more queries check if one of the two buttons has been pushed. If this is the case, the crab is turned by 5 degrees for every push of the
button in the respective direction.
15. Day
Running light
Running lights are popular effects, not only for advertisement and party rooms. The experiment of the 15th day makes seven LEDs light up as a
running light. The three RGB-LEDs are connected with one colour only each.










