Ken Van Hoeylandt 3b5a401594
Device migrations, new drivers, cleanup (#567)
* **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
2026-07-16 22:47:26 +02:00

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