mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-18 07:55:06 +00:00
* **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
28 lines
636 B
C
28 lines
636 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <tactility/device.h>
|
|
#include <tactility/drivers/backlight.h>
|
|
|
|
/**
|
|
* @brief Devicetree configuration for a PWM-driven backlight.
|
|
*/
|
|
struct PwmBacklightConfig {
|
|
/** The PWM device driving the backlight */
|
|
struct Device* pwm;
|
|
/** Inclusive [min,max] brightness range. The minimum value turns the backlight off. */
|
|
struct BrightnessLevelRange brightness_range;
|
|
/** Default brightness level, applied by set_brightness_default() */
|
|
uint8_t brightness_default;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|