Skip to content

Commit edf85bf

Browse files
authored
Update color constants to use RGB565 format
1 parent df013e2 commit edf85bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Factory_Tests/Qualia_ESP32S3_RGB666_FactoryTest/Qualia_ESP32S3_RGB666_FactoryTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void setup(void)
9090

9191
Serial.println("Initialized!");
9292

93-
gfx->fillScreen(BLACK);
93+
gfx->fillScreen(RGB565_BLACK);
9494

9595
expander->pinMode(PCA_TFT_BACKLIGHT, OUTPUT);
9696
expander->digitalWrite(PCA_TFT_BACKLIGHT, HIGH);
@@ -125,11 +125,11 @@ void loop()
125125
if (isFocalTouch && focal_ctp.touched()) {
126126
TS_Point p = focal_ctp.getPoint(0);
127127
Serial.printf("(%d, %d)\n", p.x, p.y);
128-
gfx->fillRect(p.x, p.y, 5, 5, WHITE);
128+
gfx->fillRect(p.x, p.y, 5, 5, RGB565_WHITE);
129129
} else if (!isFocalTouch && cst_ctp.touched()) {
130130
CST_TS_Point p = cst_ctp.getPoint(0);
131131
Serial.printf("(%d, %d)\n", p.x, p.y);
132-
gfx->fillRect(p.x, p.y, 5, 5, WHITE);
132+
gfx->fillRect(p.x, p.y, 5, 5, RGB565_WHITE);
133133
}
134134
}
135135

0 commit comments

Comments
 (0)