Tasmota/lib/libesp32_eink/epdiy/src/epd_display.h
Theo Arends 2deb34e856 Update epdiy library
- ESP32 Platform from 2025.07.31 to 2025.08.30, Framework (Arduino Core) from v3.1.3.250712 to v3.1.3.250808 and IDF from v5.3.3.250707 to v5.3.3.250801 (#23778)
- Epdiy library from v1.0.0 to v2.0.0
2025-08-12 16:15:58 +02:00

43 lines
1.1 KiB
C

#pragma once
#include <stdint.h>
#include "epd_internals.h"
/**
* Display type as "compatibility classes",
* Grouping displays by workarounds needed.
*/
enum EpdDisplayType {
/// A generic EPD, assume default config.
DISPLAY_TYPE_GENERIC,
/// Fast display where we can get away with low hold times.
DISPLAY_TYPE_ED097TC2,
};
typedef struct {
/// Width of the display in pixels.
int width;
/// Height of the display in pixels.
int height;
/// Width of the data bus in bits.
uint8_t bus_width;
/// Speed of the data bus in MHz, if configurable.
/// (Only used by the LCD based renderer in V7+)
int bus_speed;
/// Default waveform to use.
const EpdWaveform* default_waveform;
/// Display type
enum EpdDisplayType display_type;
} EpdDisplay_t;
extern const EpdDisplay_t ED060SCT;
extern const EpdDisplay_t ED060XC3;
extern const EpdDisplay_t ED097OC4;
extern const EpdDisplay_t ED097TC2;
extern const EpdDisplay_t ED133UT2;
extern const EpdDisplay_t ED047TC1;
extern const EpdDisplay_t ED047TC2;
extern const EpdDisplay_t ED078KC1;
extern const EpdDisplay_t ED052TC4;