migrate from binary config to json config

This commit is contained in:
sharandac
2020-08-11 14:32:27 +02:00
parent 77703b42b0
commit 33fe453f5e
24 changed files with 557 additions and 226 deletions

View File

@@ -32,12 +32,13 @@
#define DISPLAY_MAX_ROTATE 270
typedef struct {
uint32_t brightness = DISPLAY_MIN_BRIGHTNESS;
uint32_t brightness = DISPLAY_MAX_BRIGHTNESS;
uint32_t timeout = DISPLAY_MIN_TIMEOUT;
uint32_t rotation = 0;
} display_config_t;
#define DISPLAY_CONFIG_FILE "/display.cfg"
#define DISPLAY_CONFIG_FILE "/display.cfg"
#define DISPLAY_JSON_CONFIG_FILE "/display.json"
/*
* @brief setup display