@@ -27,7 +27,9 @@ void setup()
27
27
display.clearDisplay ();
28
28
display.display ();
29
29
30
- // Draw many rectangles
30
+ display.fillScreen (INKPLATE_WHITE);
31
+
32
+ // Draw many rectangles
31
33
display.fillRect (0 , 0 , 50 , 50 , INKPLATE_BLACK);
32
34
display.fillRect (0 , 50 , 50 , 50 , INKPLATE_WHITE);
33
35
display.fillRect (0 , 100 , 50 , 50 , INKPLATE_GREEN);
@@ -44,7 +46,7 @@ void setup()
44
46
display.drawRect (55 , 250 , 50 , 50 , INKPLATE_YELLOW);
45
47
display.drawRect (55 , 300 , 50 , 50 , INKPLATE_ORANGE);
46
48
47
- // Draw many circles
49
+ // Draw many circles
48
50
display.fillCircle (135 , 25 , 24 , INKPLATE_BLACK);
49
51
display.fillCircle (135 , 75 , 24 , INKPLATE_WHITE);
50
52
display.fillCircle (135 , 125 , 24 , INKPLATE_GREEN);
@@ -61,7 +63,7 @@ void setup()
61
63
display.drawCircle (190 , 275 , 24 , INKPLATE_YELLOW);
62
64
display.drawCircle (190 , 325 , 24 , INKPLATE_ORANGE);
63
65
64
- // Draw many triangles
66
+ // Draw many triangles
65
67
display.fillTriangle (210 , 50 , 260 , 50 , 235 , 0 , INKPLATE_BLACK);
66
68
display.fillTriangle (210 , 100 , 260 , 100 , 235 , 50 , INKPLATE_WHITE);
67
69
display.fillTriangle (210 , 150 , 260 , 150 , 235 , 100 , INKPLATE_GREEN);
@@ -78,7 +80,7 @@ void setup()
78
80
display.drawTriangle (210 , 300 , 260 , 300 , 235 , 250 , INKPLATE_YELLOW);
79
81
display.drawTriangle (210 , 350 , 260 , 350 , 235 , 300 , INKPLATE_ORANGE);
80
82
81
- // Show some pretty text
83
+ // Show some pretty text
82
84
display.setTextColor (INKPLATE_BLACK);
83
85
display.setCursor (265 , 0 );
84
86
display.setTextSize (2 );
@@ -114,7 +116,7 @@ void setup()
114
116
display.setTextSize (2 );
115
117
display.print (" Welcome to Inkplate Color!" );
116
118
117
- // Draw logo
119
+ // Draw logo
118
120
display.drawBitmap (0 , 350 , logo, logo_w, logo_h, INKPLATE_BLACK);
119
121
display.drawBitmap (100 , 350 , logo, logo_w, logo_h, INKPLATE_WHITE);
120
122
display.drawBitmap (200 , 350 , logo, logo_w, logo_h, INKPLATE_GREEN);
0 commit comments