19 :
RGBLed(normal_polarity ? 0 : 1,
20 normal_polarity ? 1 : 0,
21 normal_polarity ? 1 : 0,
22 normal_polarity ? 1 : 0),
24 green_pin_number(green),
bool hw_init(void) override
uint16_t green_pin_number
bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override
AP_HAL::DigitalSource * red_pin
AP_HAL::DigitalSource * green_pin
virtual void mode(uint8_t output)=0
AP_HAL::DigitalSource * blue_pin
virtual AP_HAL::DigitalSource * channel(uint16_t n)=0
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
DiscreteRGBLed(uint16_t red, uint16_t green, uint16_t blue, bool polarity)
virtual void write(uint8_t value)=0