Compare commits

...

3 Commits

Author SHA1 Message Date
bushmango fe183fb731
Merge 2aebb46823 into 9f3accdb07 2024-07-22 06:07:45 +02:00
SQFMI 9f3accdb07
Update library.json 2024-07-13 22:36:45 -04:00
Unknown 2aebb46823 basic button support 2022-05-11 17:33:32 -05:00
3 changed files with 18 additions and 1 deletions

View File

@ -30,7 +30,7 @@
},
{
"name": "WiFiManager",
"version": "https://github.com/tzapu/WiFiManager.git#2.0.3-alpha"
"version": "https://github.com/tzapu/WiFiManager.git#master"
}
]
}

View File

@ -180,6 +180,7 @@ void Watchy::handleButtonPress() {
} else if (guiState == FW_UPDATE_STATE) {
showMenu(menuIndex, false); // exit to menu if already in app
} else if (guiState == WATCHFACE_STATE) {
button1();
return;
}
}
@ -192,6 +193,7 @@ void Watchy::handleButtonPress() {
}
showMenu(menuIndex, true);
} else if (guiState == WATCHFACE_STATE) {
button2();
return;
}
}
@ -204,6 +206,7 @@ void Watchy::handleButtonPress() {
}
showMenu(menuIndex, true);
} else if (guiState == WATCHFACE_STATE) {
button3();
return;
}
}
@ -685,6 +688,17 @@ void Watchy::drawWatchFace() {
display.println(currentTime.Minute);
}
void Watchy::button1()
{
}
void Watchy::button2()
{
}
void Watchy::button3()
{
}
weatherData Watchy::getWeatherData() {
return _getWeatherData(settings.cityID, settings.lat, settings.lon,
settings.weatherUnit, settings.weatherLang, settings.weatherURL,

View File

@ -101,6 +101,9 @@ public:
void showWatchFace(bool partialRefresh);
virtual void drawWatchFace(); // override this method for different watch
// faces
virtual void button1(); // override these methods to handle different non-menu button presses
virtual void button2();
virtual void button3();
private:
void _bmaConfig();