update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user