Skip to content

Commit

Permalink
Move SetGeometry to public space
Browse files Browse the repository at this point in the history
  • Loading branch information
caveman99 authored Mar 18, 2024
1 parent 1143247 commit 7304da2
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 7304da2

Please sign in to comment.