Skip to content

Commit

Permalink
Remove the now unnecessary commands from DrawingDemo
Browse files Browse the repository at this point in the history
  • Loading branch information
ropg committed Feb 24, 2024
1 parent 0485f85 commit 58b72cc
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/SSD1306DrawingDemo/SSD1306DrawingDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ void drawCircle(void) {
}

void printBuffer(void) {
// Initialize the log buffer
// allocate memory to store 8 lines of text and 30 chars per line.
display.setLogBuffer(5, 30);

// Some test data
const char* test[] = {
"Hello",
Expand All @@ -189,15 +185,10 @@ void printBuffer(void) {
"scrolling is",
"working"
};

display.clear();
for (uint8_t i = 0; i < 11; i++) {
display.clear();
// Print to the screen
display.println(test[i]);
// Draw it to the internal screen buffer
display.drawLogBuffer(0, 0);
// Display it on the screen
display.display();
delay(500);
}
}
Expand Down

0 comments on commit 58b72cc

Please sign in to comment.