mirror of
https://github.com/crosspoint-reader/crosspoint-reader.git
synced 2026-04-29 10:26:52 -07:00
Initial support for the x3
This commit is contained in:
@@ -20,6 +20,13 @@ class HalDisplay {
|
||||
// Initialize the display hardware and driver
|
||||
void begin();
|
||||
|
||||
// Pre-begin display config passthroughs (used by X3 setup path)
|
||||
void setDcPin(int8_t pin);
|
||||
void setBusyActiveHigh(bool activeHigh);
|
||||
void setBwOnly(bool bwOnly);
|
||||
void setControllerType(EInkDisplay::ControllerType type);
|
||||
void setDisplayDimensions(uint16_t width, uint16_t height);
|
||||
|
||||
// Display dimensions
|
||||
static constexpr uint16_t DISPLAY_WIDTH = EInkDisplay::DISPLAY_WIDTH;
|
||||
static constexpr uint16_t DISPLAY_HEIGHT = EInkDisplay::DISPLAY_HEIGHT;
|
||||
@@ -47,6 +54,12 @@ class HalDisplay {
|
||||
|
||||
void displayGrayBuffer(bool turnOffScreen = false);
|
||||
|
||||
// Runtime geometry passthrough
|
||||
uint16_t getDisplayWidth() const;
|
||||
uint16_t getDisplayHeight() const;
|
||||
uint16_t getDisplayWidthBytes() const;
|
||||
uint32_t getBufferSize() const;
|
||||
|
||||
private:
|
||||
EInkDisplay einkDisplay;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user