Skip to content

Commit 9b54ec8

Browse files
committed
Add window initialization to example 3
1 parent 49a9e16 commit 9b54ec8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/Example3_AdvancedHyperDisplay/Example3_AdvancedHyperDisplay.ino

+5
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ void setup() {
154154
wind_info_t wind1, wind2, wind3; // Create several window objects
155155
ILI9163C_color_18_t color1, color2, color3;
156156

157+
// Initialize the windows to defualt settings (this is a pretty important step unless you are extra careful to manually initialize each and every paramter)
158+
myTFT.setWindowDefaults(&wind1);
159+
myTFT.setWindowDefaults(&wind2);
160+
myTFT.setWindowDefaults(&wind3);
161+
157162
color1.r = 0xFF; // Set the colors to red, green, and blue respectively
158163
color1.g = 0x00;
159164
color1.b = 0x00;

0 commit comments

Comments
 (0)