The fourth training will provide some knowledge about the «switch» and the «if» blocks used in C language programming. The description of the practice will be as follows:
We will have 3 lights, one green, one yellow and one red and there will be 4 buttons. The bottons will work like this:
- The first button will switch the green light on and switch any other light off.
- The second button will switch the yellow light on and switch any other light off.
- The third button will switch the red light on and switch any other light off.
- The fourth button will switch every single light on.
The secuence will be repeated in loop.