You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
booldrawFrame1(SSD1306 *display, SSD1306UiState* state, int x, int y) {
117
99
// draw an xbm image.
118
100
// Please note that everything that should be transitioned
119
101
// needs to be drawn relative to x and y
@@ -124,7 +106,7 @@ bool drawFrame1(SSD1306 *display, int x, int y) {
124
106
returnfalse;
125
107
}
126
108
127
-
booldrawFrame2(SSD1306 *display, int x, int y) {
109
+
booldrawFrame2(SSD1306 *display, SSD1306UiState* state, int x, int y) {
128
110
// Demonstrates the 3 included default sizes. The fonts come from SSD1306Fonts.h file
129
111
// Besides the default fonts there will be a program to convert TrueType fonts into this format
130
112
display->setTextAlignment(TEXT_ALIGN_LEFT);
@@ -140,7 +122,7 @@ bool drawFrame2(SSD1306 *display, int x, int y) {
140
122
returnfalse;
141
123
}
142
124
143
-
booldrawFrame3(SSD1306 *display, int x, int y) {
125
+
booldrawFrame3(SSD1306 *display, SSD1306UiState* state, int x, int y) {
144
126
// Text alignment demo
145
127
display->setFont(ArialMT_Plain_10);
146
128
@@ -158,7 +140,7 @@ bool drawFrame3(SSD1306 *display, int x, int y) {
158
140
returnfalse;
159
141
}
160
142
161
-
booldrawFrame4(SSD1306 *display, int x, int y) {
143
+
booldrawFrame4(SSD1306 *display, SSD1306UiState* state, int x, int y) {
162
144
// Demo for drawStringMaxWidth:
163
145
// with the third parameter you can define the width after which words will be wrapped.
164
146
// Currently only spaces and "-" are allowed for wrapping
@@ -167,6 +149,3 @@ bool drawFrame4(SSD1306 *display, int x, int y) {
167
149
display->drawStringMaxWidth(0 + x, 10 + y, 128, "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.");
0 commit comments