mirror of https://github.com/sqfmi/Watchy.git
Compare commits
2 Commits
634ae656c3
...
3764f6a946
Author | SHA1 | Date |
---|---|---|
bushmango | 3764f6a946 | |
Unknown | 2aebb46823 |
|
@ -161,6 +161,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;
|
||||
}
|
||||
}
|
||||
|
@ -173,6 +174,7 @@ void Watchy::handleButtonPress() {
|
|||
}
|
||||
showMenu(menuIndex, true);
|
||||
} else if (guiState == WATCHFACE_STATE) {
|
||||
button2();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -185,6 +187,7 @@ void Watchy::handleButtonPress() {
|
|||
}
|
||||
showMenu(menuIndex, true);
|
||||
} else if (guiState == WATCHFACE_STATE) {
|
||||
button3();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -666,6 +669,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,
|
||||
|
|
|
@ -99,6 +99,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();
|
||||
|
|
Loading…
Reference in New Issue