Split code between ulanzi environment and awtrix_upgrade

Added BME280 sensor support for awtrix_upgrade.

Removed battery readings for awtrix_upgrade

Added DFMiniMp3 lib for replacing the Ulanzi buzzer in the future
This commit is contained in:
Elfish
2023-03-31 15:12:13 +02:00
parent 5fb65e96c1
commit 055d54d099
22 changed files with 1331 additions and 5 deletions

View File

@@ -503,8 +503,10 @@ void DisplayManager_::loadNativeApps()
// Update the "hum" app at position 3
updateApp("hum", HumApp, SHOW_HUM, 3);
#ifdef ULANZI
// Update the "bat" app at position 4
updateApp("bat", BatApp, SHOW_BAT, 4);
#endif
ui.setApps(Apps);
@@ -813,11 +815,13 @@ void DisplayManager_::updateAppVector(const char *json)
callback = HumApp;
SHOW_HUM = show;
}
#ifdef ULANZI
else if (name == "bat")
{
callback = BatApp;
SHOW_BAT = show;
}
#endif
else
{
// If the app is not one of the built-in apps, check if it's already in the vector