19 #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX 25 #define RED_PWM_INDEX 9 26 #define GREEN_PWM_INDEX 8 27 #define BLUE_PWM_INDEX 15 29 #define DISCO_LED_LOW 0x33 30 #define DISCO_LED_MEDIUM 0x7F 31 #define DISCO_LED_HIGH 0xFF 32 #define DISCO_LED_OFF 0x00 34 #define DISCO_LED_RED_NAME "evinrude:red" 35 #define DISCO_LED_GREEN_NAME "evinrude:green" 36 #define DISCO_LED_BLUE_NAME "evinrude:blue"
Linux::PWM_Sysfs_Bebop green_pwm
bool set_brightness(uint8_t brightness)
bool set_duty_cycle(uint32_t nsec_duty_cycle)
Linux::Led_Sysfs blue_led
#define DISCO_LED_RED_NAME
Linux::PWM_Sysfs_Bebop blue_pwm
Linux::PWM_Sysfs_Bebop red_pwm
bool hw_init(void) override
#define DISCO_LED_BLUE_NAME
Linux::Led_Sysfs green_led
bool hw_set_rgb(uint8_t r, uint8_t g, uint8_t b) override
uint32_t green_pwm_period
#define DISCO_LED_GREEN_NAME