T-Deck Max & Pro support updates (#582)
- Created kernel driver for T-Deck Max & Pro display (needs work, doesn't refresh reliably on T-Deck Pro) - Created T-Deck Pro device implementation (incubating)
This commit is contained in:
committed by
GitHub
parent
429125734a
commit
29e80cfd65
@@ -0,0 +1,33 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <tactility/drivers/gpio.h>
|
||||
|
||||
/** Waveform/refresh mode used for automatic full-screen refreshes. */
|
||||
enum Gdeq031t10RefreshMode {
|
||||
GDEQ031T10_REFRESH_FULL = 0, // ~3s, best quality
|
||||
GDEQ031T10_REFRESH_FAST = 1, // ~1.0s
|
||||
GDEQ031T10_REFRESH_SLOW = 2, // ~1.5s, fast LUT with extra settling
|
||||
GDEQ031T10_REFRESH_PARTIAL = 3 // ~0.5s, full-frame partial-mode refresh (more ghosting)
|
||||
};
|
||||
|
||||
struct Gdeq031t10Config {
|
||||
struct GpioPinSpec pin_dc;
|
||||
struct GpioPinSpec pin_reset;
|
||||
struct GpioPinSpec pin_busy;
|
||||
int clock_speed_hz;
|
||||
enum Gdeq031t10RefreshMode refresh_mode;
|
||||
/** Panel is mounted upside down relative to the reference orientation */
|
||||
bool mirror_180;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user