|
|
@ -24,8 +24,10 @@ class DiscreteRGBLed: public RGBLed { |
|
|
|
public: |
|
|
|
public: |
|
|
|
DiscreteRGBLed(uint16_t red, uint16_t green, uint16_t blue, bool polarity); |
|
|
|
DiscreteRGBLed(uint16_t red, uint16_t green, uint16_t blue, bool polarity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
bool hw_init(void) override; |
|
|
|
bool hw_init(void) override; |
|
|
|
bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override; |
|
|
|
bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
AP_HAL::DigitalSource *red_pin; |
|
|
|
AP_HAL::DigitalSource *red_pin; |
|
|
|
AP_HAL::DigitalSource *green_pin; |
|
|
|
AP_HAL::DigitalSource *green_pin; |
|
|
|