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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user