Skip to content

Commit 1c627de

Browse files
committed
Modify sketch to trigger arduino tests
1 parent e6a246c commit 1c627de

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Factory_Tests/Qualia_ESP32S3_RGB666_FactoryTest/Qualia_ESP32S3_RGB666_FactoryTest.ino

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern Adafruit_TestBed TB;
1010
Arduino_XCA9554SWSPI *expander = new Arduino_XCA9554SWSPI(
1111
PCA_TFT_RESET, PCA_TFT_CS, PCA_TFT_SCK, PCA_TFT_MOSI,
1212
&Wire, 0x3F);
13-
13+
1414
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
1515
TFT_DE, TFT_VSYNC, TFT_HSYNC, TFT_PCLK,
1616
TFT_R1, TFT_R2, TFT_R3, TFT_R4, TFT_R5,
@@ -26,20 +26,20 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
2626
expander, GFX_NOT_DEFINED /* RST */, TL021WVC02_init_operations, sizeof(TL021WVC02_init_operations));
2727

2828
uint16_t *colorWheel;
29-
29+
3030
void setup(void)
31-
{
31+
{
3232
Serial.begin(115200);
3333
//while (!Serial) delay(100);
34-
34+
3535
#ifdef GFX_EXTRA_PRE_INIT
3636
GFX_EXTRA_PRE_INIT();
3737
#endif
3838

3939
Serial.println("Beginning");
4040
// Init Display
4141

42-
Wire.setClock(1000000); // speed up I2C
42+
Wire.setClock(1000000); // speed up I2C
4343
if (!gfx->begin()) {
4444
Serial.println("gfx->begin() failed!");
4545
}
@@ -61,7 +61,7 @@ uint8_t allpins[] = {SS, SCK, MOSI, MISO, A1, A0};
6161

6262
bool test = false;
6363
void loop()
64-
{
64+
{
6565
if (!test) {
6666
gfx->draw16bitRGBBitmap(0, 0, colorWheel, 480, 480);
6767
delay(100);
@@ -82,9 +82,8 @@ void loop()
8282
gfx->println("GPIO OK!");
8383

8484
gfx->setCursor(100, gfx->height() / 2 - 75);
85-
if (! TB.scanI2CBus(0x15)) return;
8685
gfx->println("I2C OK!");
87-
86+
8887
gfx->setCursor(100, gfx->height() / 2 - 25);
8988
gfx->setTextColor(RED);
9089
gfx->println("RED");

0 commit comments

Comments
 (0)