Skip to content

Commit

Permalink
headless env
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Nov 28, 2024
1 parent a901039 commit f57ed53
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ports/ESP-General/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
** Location: main.cpp
** Description: initial setup for the device
***************************************************************************************/
void _setup_gpio() { }
void _setup_gpio() {
pinMode(SEL_BTN,INPUT);
}


/***************************************************************************************
Expand Down Expand Up @@ -48,7 +50,16 @@ bool checkPrevPress() { return false; }
** location: mykeyboard.cpp
** Verifies if Select or OK was pressed
**********************************************************************/
bool checkSelPress(){ return false; }
bool checkSelPress(){
if(digitalRead(SEL_BTN)==LOW) {
if(wakeUpScreen()){
delay(200);
return false;
}
return true;
}
else return false;
}


/*********************************************************************
Expand Down

0 comments on commit f57ed53

Please sign in to comment.