Program Listing for File LEDs.hpp

Return to documentation for file (doc/include/LEDs.hpp)

#ifndef LEDs_HPP_
#define LEDs_HPP_

#include <cstdint>

class LEDs {
public:
    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;

    virtual ~LEDs(){};

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

#endif  // FACTORY_HPP_