mirror of
https://github.com/nacabaro/nacapet.git
synced 2026-01-28 00:15:32 +00:00
15 lines
340 B
C++
15 lines
340 B
C++
#include "menu.h"
|
|
#include "defs/defs.h"
|
|
#include "buttons/buttons.h"
|
|
#include "display/display.h"
|
|
|
|
void menu_offScreen() {
|
|
uint8_t buttons = buttons_getPressedButtons();
|
|
if (buttons != 0) {
|
|
tft_drawBuffer();
|
|
digitalWrite(BL_PIN, HIGH);
|
|
screenKey = MAIN_SCREEN;
|
|
} else {
|
|
screenOff = true;
|
|
}
|
|
} |