23 static LED LED_leds[2] =
27 #define NUMBER_OF_LEDS ( sizeof(LED_leds) / sizeof(LED) )
43 if(led_num >= NUMBER_OF_LEDS)
45 LED *led = &LED_leds[led_num];
52 void LED_toggle(uint8_t led_num)
54 if(led_num >= NUMBER_OF_LEDS)
56 LED *led = &LED_leds[led_num];
60 led->state = !led->state;
void LED_set(uint8_t led_num, bool state)
void LED_off(uint8_t led_num)
void LED_on(uint8_t led_num)
void GPIO_write(uint8_t gpio_num, bool state)