4th practice

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:

  1. The first button will switch the green light on and switch any other light off.
  2. The second button will switch the yellow light on and switch any other light off.
  3. The third button will switch the red light on and switch any other light off.
  4. The fourth button will switch every single light on.

The secuence will be repeated in loop.

Diseña un sitio como este con WordPress.com
Comenzar