Implement CL-32 Support (#610)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
#pragma once
|
||||
|
||||
#include <tactility/bindings/bindings.h>
|
||||
#include <drivers/esp_epaper.h>
|
||||
|
||||
DEFINE_DEVICETREE(esp_epaper, struct EspEpaperConfig)
|
||||
@@ -0,0 +1,44 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <epaper_config.h>
|
||||
#include <tactility/drivers/gpio.h>
|
||||
|
||||
/**
|
||||
* @brief Panel configuration for an esp_epaper-driven e-paper display.
|
||||
*
|
||||
* The struct field order matches the binding's property order and must stay in
|
||||
* sync with it: the devicetree compiler emits struct initializers in binding
|
||||
* order, not declaration order.
|
||||
*/
|
||||
struct EspEpaperConfig {
|
||||
struct GpioPinSpec pin_dc;
|
||||
struct GpioPinSpec pin_reset;
|
||||
struct GpioPinSpec pin_busy;
|
||||
struct GpioPinSpec pin_cs;
|
||||
/** SPI clock frequency in Hz */
|
||||
int clock_speed_hz;
|
||||
/** Panel registry name, e.g. "ssd16xx-290" (see the binding's panel-type) */
|
||||
const char* panel_type;
|
||||
/** Horizontal resolution override; 0 = the panel's default */
|
||||
uint16_t width;
|
||||
/** Vertical resolution override; 0 = the panel's default */
|
||||
uint16_t height;
|
||||
/** epd_update_mode_t used for frame updates */
|
||||
epd_update_mode_t update_mode;
|
||||
/**
|
||||
* Fixed display rotation, 0 = 0 degrees, 1 = 90, 2 = 180, 3 = 270 degrees
|
||||
* counter-clockwise (LV_DISPLAY_ROTATION_*). Not changeable at runtime.
|
||||
*/
|
||||
uint8_t rotation;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
#pragma once
|
||||
|
||||
#include <tactility/module.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern struct Module esp_epaper_module;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user