2018-01-17 03:14:54 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RGBLed.h"
|
|
|
|
|
|
|
|
class UAVCAN_RGB_LED: public RGBLed {
|
|
|
|
public:
|
|
|
|
UAVCAN_RGB_LED(uint8_t led_index, uint8_t led_off, uint8_t led_full,
|
|
|
|
uint8_t led_medium, uint8_t led_dim);
|
|
|
|
UAVCAN_RGB_LED(uint8_t led_index);
|
2021-03-28 22:44:23 -03:00
|
|
|
bool init() override;
|
2018-01-17 03:14:54 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
uint8_t _led_index;
|
|
|
|
};
|
|
|
|
|