Class LEDs

Class Documentation

class LEDs

This class allows to manage system leds.

Public Functions

inline virtual ~LEDs()

Class destructor

virtual void setLed(const uint8_t led_number, const uint8_t action, const uint8_t color_mask, const uint32_t action_ms = 0) = 0

Switches on the specified led, with the action, color mask and time configured.

Parameters
  • led_number -- [in] number of led.

  • action -- [in] action to be performed.

  • color_mask -- [in] mask of colors to show on the led.

  • action_ms -- [in] duration in ms of the action. If value is 0, led must be switch off manually. Optional parameter. Default value is 0. Only for actions ACTION_ON and ACTION_BLINK.

Public Static Attributes

static constexpr uint8_t LED_1 = 1
static constexpr uint8_t LED_2 = 2
static constexpr uint8_t ACTION_ON = 1
static constexpr uint8_t ACTION_OFF = 2
static constexpr uint8_t ACTION_TOGGLE = 3
static constexpr uint8_t ACTION_BLINK = 4
static constexpr uint8_t COLOR_RED = 0x01
static constexpr uint8_t COLOR_GREEN = 0x02
static constexpr uint8_t COLOR_BLUE = 0x04
static constexpr uint8_t COLOR_ALL = 0x07