UAVCAN_RGB_LED.h 409 B

123456789101112131415161718
  1. #pragma once
  2. #include "RGBLed.h"
  3. class UAVCAN_RGB_LED: public RGBLed {
  4. public:
  5. UAVCAN_RGB_LED(uint8_t led_index, uint8_t led_off, uint8_t led_full,
  6. uint8_t led_medium, uint8_t led_dim);
  7. UAVCAN_RGB_LED(uint8_t led_index);
  8. protected:
  9. bool hw_init() override;
  10. virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override;
  11. private:
  12. uint8_t _led_index;
  13. };