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

Move SetGeometry to public space #12

Merged
merged 1 commit into from
Mar 18, 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
6 changes: 3 additions & 3 deletions src/OLEDDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ class OLEDDisplay : public Stream {
uint8_t *buffer_back;
#endif

// Set the correct height, width and buffer for the geometry
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);

protected:

OLEDDISPLAY_GEOMETRY geometry;
Expand All @@ -366,9 +369,6 @@ class OLEDDisplay : public Stream {
uint16_t displayHeight;
uint16_t displayBufferSize;

// Set the correct height, width and buffer for the geometry
void setGeometry(OLEDDISPLAY_GEOMETRY g, uint16_t width = 0, uint16_t height = 0);

OLEDDISPLAY_TEXT_ALIGNMENT textAlignment;
OLEDDISPLAY_COLOR color;

Expand Down
Loading