I want to jump to a specific ui frame when a button is pressed. I have tried several approaches but all seem to wait until the normal frame transition is complete before moving to the selected frame. Here is one approach that does not work:
using an ESP32 with Arduino IDE:
void loop(){
unsigned int touchThreshold = 15;
unsigned int TVright = 0; // right rear
int remainingTimeBudget = ui.update();
if ( remainingTimeBudget > 0) {
int TVright = touchRead(rightPad) ;
if ( TVright < touchThreshold ) {
ui.disableAutoTransition();
ui.switchToFrame(3);
delay(5000);
ui.enableAutoTransition();
}
delay( remainingTimeBudget );
}
}