Skip to content

Commit 32871f1

Browse files
committed
window management
1 parent eddc392 commit 32871f1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/controller/Display.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,13 @@ namespace udd {
148148
}
149149

150150
void Display::clearScreen(Color color) {
151-
printf("clearScreen: starts\n"); fflush(stdout);
152-
153-
154151
screenLock.lock();
155-
156-
157152
openSPI();
158153
resume();
159154

160155
int width = config.width + config.xOffset;
161156
int height = config.height + config.yOffset;
162157

163-
printf("clearScreen: width=%d height=%d\n", width, height); fflush(stdout);
164-
165158
_word row[width];
166159
_byte* rowPointer = (_byte*)(row);
167160

@@ -172,14 +165,11 @@ namespace udd {
172165
row[x] = cx;
173166
}
174167

175-
printf("clearScreen: tag01\n"); fflush(stdout);
176168
setWindow(Point(0, 0), Point(width-1, height-1), DEGREE_0);
177169

178170
digitalWrite(config.DC, 1);
179171
digitalWrite(config.CS, 0);
180172

181-
printf("clearScreen: write data row width=%d\n", width); fflush(stdout);
182-
183173
for (int y = 0; y < height; y++) {
184174
writeData(rowPointer, (width) * 2);
185175
}

0 commit comments

Comments
 (0)