3b5a401594
* **New Features** * Added native display support for ST7796, ILI9341, and ST7789 panels across supported boards. * Added FT5x06 and FT6x36 touchscreen support. * Generic PWM driver * ESP32 PWM driver * Generic RGB LED driver * RGB PWM LED driver * RGB GPIO LED driver * Implementation of RGB LED for various boards * **Improvements** * Updated board hardware descriptions to use explicit display/touch/backlight device-tree bindings and disabled deprecated HAL usage. * Improved display and touch-driver cleanup to prevent stale resources and improve shutdown reliability. * Pinned esp-hosted library to a fixed version * **Deletions** * Obsolete placeholder display * Legacy ILI9488 support. * ESP32-specific LEDC PWM implementation
32 lines
694 B
C
32 lines
694 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
#include <tactility/drivers/rgb_led.h>
|
|
|
|
/**
|
|
* @brief Devicetree configuration for the GPIO-driven RGB LED.
|
|
*/
|
|
struct RgbLedGpioConfig {
|
|
/** Red channel output pin */
|
|
struct GpioPinSpec pin_red;
|
|
/** Green channel output pin */
|
|
struct GpioPinSpec pin_green;
|
|
/** Blue channel output pin */
|
|
struct GpioPinSpec pin_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
|