The LED Task

The responsibility of the LED task is to light up the LEDs that belong to the pushed buttons and to turn off the LEDs of the buttons that are not pushed. The LED will be lit for as long as the button is held down. The information about the recent button events is received through the led_queue. As mentioned in the previous section, it is the main task that sends to this queue. Refer to the figure below for the UML diagram.

Figure 1. LED Task