mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-18 03:15:05 +00:00
Replaces the EPDiy and esp_epaper based display drivers with purpose-built drivers, and removes the Chat app.
32 lines
789 B
C
32 lines
789 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
/**
|
|
* 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 Ssd16xxConfig {
|
|
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 name, see the binding's panel-type */
|
|
const char* panel_type;
|
|
/** Display rotation, 0 = 0 degrees, 1 = 90, 2 = 180, 3 = 270 degrees counter-clockwise */
|
|
uint8_t rotation;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|