This commit is contained in:
Stephan Mühl
2023-04-03 14:28:00 +02:00
parent 08f847314a
commit 0ca49bd407
2 changed files with 10 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ void startLittleFS()
{
#ifdef ULANZI
LittleFS.mkdir("/MELODIES");
#endif
#endif
LittleFS.mkdir("/ICONS");
}
else
@@ -51,6 +51,11 @@ void loadDevSettings()
BOOT_SOUND = doc["bootsound"].as<String>();
}
if (doc.containsKey("matrix"))
{
MATRIX_LAYOUT = doc["matrix"];
}
if (doc.containsKey("bootsound"))
{
UPPERCASE_LETTERS = doc["uppercase"].as<bool>();
@@ -85,7 +90,7 @@ void loadSettings()
#endif
SOUND_ACTIVE = Settings.getBool("SOUND", true);
#ifndef ULANZI
//Settings.putUInt("VOL", VOLUME_PERCENT);
// Settings.putUInt("VOL", VOLUME_PERCENT);
VOLUME_PERCENT = Settings.getUInt("VOL", 50);
VOLUME = map(VOLUME_PERCENT, 0, 100, 0, 30);
#endif

View File

@@ -59,11 +59,10 @@ void BootAnimation(void *parameter)
void setup()
{
PeripheryManager.setup();
delay(1000);
Serial.begin(115200);
loadSettings();
Serial.begin(9600);
PeripheryManager.setup();
delay(500);
ServerManager.loadSettings();
DisplayManager.setup();
DisplayManager.HSVtext(9, 6, VERSION, true);