| 601 | } |
| 602 | |
| 603 | void 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 | } |
| 641 | bool getFromNVS() { |
| 642 | esp_err_t err; |
| 643 | std::unique_ptr<nvs::NVSHandle> nvsHandle = nvs::open_nvs_handle("launcher", NVS_READONLY, &err); |
no test coverage detected