Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make VirtualMatrixPanel::getCoords() public. #621

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/ESP32-VirtualMatrixPanel-I2S-DMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,17 @@ class VirtualMatrixPanel
void setPhysicalPanelScanRate(PANEL_SCAN_RATE rate);
void setZoomFactor(int scale);

virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;
int16_t panelResX;
int16_t panelResY;

private:
MatrixPanel_I2S_DMA *display;

PANEL_CHAIN_TYPE panel_chain_type;
PANEL_SCAN_RATE panel_scan_rate = NORMAL_TWO_SCAN;

virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;

int16_t virtualResX; ///< Display width as combination of panels
int16_t virtualResY; ///< Display height as combination of panels

Expand All @@ -164,9 +166,6 @@ class VirtualMatrixPanel
int16_t vmodule_rows;
int16_t vmodule_cols;

int16_t panelResX;
int16_t panelResY;

int16_t dmaResX; // The width of the chain in pixels (as the DMA engine sees it)

int _rotate = 0;
Expand Down
Loading