ardupilot/libraries/AP_Notify/UAVCAN_RGB_LED.h
Michael du Breuil c0017abb63 AP_Notify: Remove indirection on RGBLed of init()->hw_init()
Saves a bit of flash, and just makes the code a bit more obvious
2021-03-30 11:18:45 +11:00

19 lines
406 B
C++

#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);
bool init() override;
protected:
virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override;
private:
uint8_t _led_index;
};