mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-17 23:55:04 +00:00
32 lines
710 B
C
32 lines
710 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <tactility/device.h>
|
|
#include <tactility/drivers/rgb_led.h>
|
|
|
|
/**
|
|
* @brief Devicetree configuration for the PWM-driven RGB LED.
|
|
*/
|
|
struct RgbLedPwmConfig {
|
|
/** PWM device driving the red channel */
|
|
struct Device* pwm_red;
|
|
/** PWM device driving the green channel */
|
|
struct Device* pwm_green;
|
|
/** PWM device driving the blue channel */
|
|
struct Device* pwm_blue;
|
|
/** Whether the LED is turned on by default */
|
|
bool enabled;
|
|
/** Color applied when the LED is turned on by default */
|
|
struct RgbLedColor default_color;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|