Contiki-NG
leds_s Struct Reference

A LED logical representation. More...

#include <os/dev/leds.h>

Detailed Description

A LED logical representation.

pin corresponds to the GPIO pin a LED is driven by, using GPIO HAL pin representation.

port corresponds to the GPIO port that the pin is connected to. This only makes sense if GPIO_HAL_CONF_PORT_PIN_NUMBERING is non-zero.

negative_logic should be set to false if the LED is active low.

Note
Do not access the port member of this struct direct, use the LED_PORT() macro instead.

Definition at line 219 of file leds.h.