2023-04-08 00:53:24 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RGBLed.h"
|
|
|
|
|
2023-04-08 01:09:10 -03:00
|
|
|
class DroneCAN_RGB_LED: public RGBLed {
|
2023-04-08 00:53:24 -03:00
|
|
|
public:
|
2023-04-08 01:09:10 -03:00
|
|
|
DroneCAN_RGB_LED(uint8_t led_index, uint8_t led_off, uint8_t led_full,
|
2023-04-08 00:53:24 -03:00
|
|
|
uint8_t led_medium, uint8_t led_dim);
|
2023-04-08 01:09:10 -03:00
|
|
|
DroneCAN_RGB_LED(uint8_t led_index);
|
2023-04-08 00:53:24 -03:00
|
|
|
bool init() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
uint8_t _led_index;
|
|
|
|
};
|
|
|
|
|