Skip to content

Commit

Permalink
Update test.cpp on Inkplate 6 FLICK
Browse files Browse the repository at this point in the history
Touchscreen corrupted test of the WAKE BTN. Touchscreen must be disabled before WAKE BTN test.
  • Loading branch information
BornaBiro authored Jul 22, 2024
1 parent 3815e90 commit 2f380d0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ void testPeripheral()
}

// Text wake up button
// Disable touchscreen to avoid accidental TS INT trigger that would trigger WAKE button.
// (since Touch INT and WAKE BTN share same line).
display.tsInit(true);
// Wait a little bit.
delay(100);

long beginWakeUpTest = millis();
int wakeButtonState = digitalRead(GPIO_NUM_36);

Expand Down Expand Up @@ -414,4 +420,4 @@ void failHandler(bool printErrorOnSerial)
// Inf. loop... halt the program!
while (true)
delay(1000);
}
}

0 comments on commit 2f380d0

Please sign in to comment.