mirror of https://github.com/sqfmi/Watchy.git
Delete unused fast menu
parent
558e0cf209
commit
f7fa1903af
|
@ -235,35 +235,6 @@ void Watchy::showMenu(byte menuIndex, bool partialRefresh){
|
|||
guiState = MAIN_MENU_STATE;
|
||||
}
|
||||
|
||||
void Watchy::showFastMenu(byte menuIndex){
|
||||
display.setFullWindow();
|
||||
display.fillScreen(GxEPD_BLACK);
|
||||
display.setFont(&FreeMonoBold9pt7b);
|
||||
|
||||
int16_t x1, y1;
|
||||
uint16_t w, h;
|
||||
int16_t yPos;
|
||||
|
||||
const char *menuItems[] = {"Check Battery", "Vibrate Motor", "Show Accelerometer", "Set Time", "Setup WiFi", "Update Firmware"};
|
||||
for (int i=0; i<MENU_LENGTH; i++) {
|
||||
yPos = 30+(MENU_HEIGHT*i);
|
||||
display.setCursor(0, yPos);
|
||||
if (i == menuIndex) {
|
||||
display.getTextBounds(menuItems[i], 0, yPos, &x1, &y1, &w, &h);
|
||||
display.fillRect(x1-1, y1-10, 200, h+15, GxEPD_WHITE);
|
||||
display.setTextColor(GxEPD_BLACK);
|
||||
display.println(menuItems[i]);
|
||||
} else {
|
||||
display.setTextColor(GxEPD_WHITE);
|
||||
display.println(menuItems[i]);
|
||||
}
|
||||
}
|
||||
|
||||
display.display(true);
|
||||
|
||||
guiState = MAIN_MENU_STATE;
|
||||
}
|
||||
|
||||
void Watchy::showBattery(){
|
||||
display.init(0, false); //_initial_refresh to false to prevent full update on init
|
||||
display.setFullWindow();
|
||||
|
|
|
@ -33,7 +33,6 @@ class Watchy {
|
|||
|
||||
void handleButtonPress();
|
||||
void showMenu(byte menuIndex, bool partialRefresh);
|
||||
void showFastMenu(byte menuIndex);
|
||||
void showBattery();
|
||||
void showBuzz();
|
||||
void showAccelerometer();
|
||||
|
|
Loading…
Reference in New Issue