MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / defaultValues

Function defaultValues

src/settings.cpp:603–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void defaultValues() {
604 // rotation = ROTATION;
605#ifdef DIMMER_SETUP
606 dimmerSet = DIMMER_SETUP;
607#else
608 dimmerSet = 20;
609#endif
610 bright = 100;
611 onlyBins = true;
612 bootToApp = true;
613 noDotFiles = true;
614 askSpiffs = true;
615#if defined(E_PAPER_DISPLAY)
616 FGCOLOR = 0x0000;
617 BGCOLOR = 0xFFFF;
618 ALCOLOR = 0x8888;
619 odd_color = 0x5555;
620 even_color = 0x2222;
621#else
622 FGCOLOR = 0x07E0;
623 BGCOLOR = 0x0000;
624 ALCOLOR = 0xF800;
625 odd_color = 0x30c5;
626 even_color = 0x32e5;
627#endif
628 dev_mode = false;
629 wui_usr = "admin";
630 wui_pwd = "launcher";
631 dwn_path = "/downloads/";
632#if defined(HEADLESS)
633 // SD Pins
634 _miso = 0;
635 _mosi = 0;
636 _sck = 0;
637 _cs = 0;
638#endif
639 saveIntoNVS();
640}
641bool getFromNVS() {
642 esp_err_t err;
643 std::unique_ptr<nvs::NVSHandle> nvsHandle = nvs::open_nvs_handle("launcher", NVS_READONLY, &err);

Callers 1

getFromNVSFunction · 0.85

Calls 1

saveIntoNVSFunction · 0.85

Tested by

no test coverage detected