Skip to content

Commit aa4c100

Browse files
committed
Adding a zero-length test to Example9_Lines
1 parent 9e0240c commit aa4c100

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/Example9_Lines/Example9_Lines.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void setup()
3232
Serial.begin(115200);
3333
Serial.println(F("Micro OLED Example"));
3434

35-
//oled.enableDebugging(); // Uncomment this line to enable debug messages on Serial
35+
oled.enableDebugging(); // Uncomment this line to enable debug messages on Serial
3636

3737
oled.begin(); // Initialize the OLED
3838
oled.clear(ALL); // Clear the display's internal memory
@@ -41,6 +41,11 @@ void setup()
4141
int MIDDLE_X = oled.getLCDWidth() / 2; // Find the centre of the display
4242
int MIDDLE_Y = oled.getLCDHeight() / 2;
4343

44+
oled.clear(PAGE);
45+
oled.line(MIDDLE_X, MIDDLE_Y, MIDDLE_X, MIDDLE_Y); // Zero length
46+
oled.display();
47+
delay(500);
48+
4449
oled.clear(PAGE);
4550
oled.line(MIDDLE_X - 10, MIDDLE_Y - 20, MIDDLE_X + 10, MIDDLE_Y + 20); // Steep x0<x1
4651
oled.display();

0 commit comments

Comments
 (0)