Skip to content

Commit 2f380d0

Browse files
authored
Update test.cpp on Inkplate 6 FLICK
Touchscreen corrupted test of the WAKE BTN. Touchscreen must be disabled before WAKE BTN test.
1 parent 3815e90 commit 2f380d0

File tree

1 file changed

+7
-1
lines changed
  • examples/Inkplate6FLICK/Diagnostics/Inkplate6FLICK_Factory_Programming_VCOM

1 file changed

+7
-1
lines changed

examples/Inkplate6FLICK/Diagnostics/Inkplate6FLICK_Factory_Programming_VCOM/test.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ void testPeripheral()
173173
}
174174

175175
// Text wake up button
176+
// Disable touchscreen to avoid accidental TS INT trigger that would trigger WAKE button.
177+
// (since Touch INT and WAKE BTN share same line).
178+
display.tsInit(true);
179+
// Wait a little bit.
180+
delay(100);
181+
176182
long beginWakeUpTest = millis();
177183
int wakeButtonState = digitalRead(GPIO_NUM_36);
178184

@@ -414,4 +420,4 @@ void failHandler(bool printErrorOnSerial)
414420
// Inf. loop... halt the program!
415421
while (true)
416422
delay(1000);
417-
}
423+
}

0 commit comments

Comments
 (0)