Add SD history UI and pin remap
- Add SD history chart + download listing to web UI - Use HSPI for SD and fix SD pin mapping - Swap role/OLED control pins and update role detection - Update README pin mapping and SD/history docs
This commit is contained in:
@@ -39,8 +39,8 @@ constexpr uint8_t OLED_HEIGHT = 64;
|
||||
|
||||
constexpr uint8_t PIN_BAT_ADC = 35;
|
||||
|
||||
constexpr uint8_t PIN_ROLE = 13;
|
||||
constexpr uint8_t PIN_OLED_CTRL = 14;
|
||||
constexpr uint8_t PIN_ROLE = 14;
|
||||
constexpr uint8_t PIN_OLED_CTRL = 13;
|
||||
|
||||
constexpr uint8_t PIN_METER_RX = 34;
|
||||
|
||||
@@ -73,11 +73,18 @@ constexpr uint8_t BATCH_QUEUE_DEPTH = 10;
|
||||
constexpr BatchRetryPolicy BATCH_RETRY_POLICY = BatchRetryPolicy::Keep;
|
||||
constexpr uint32_t WATCHDOG_TIMEOUT_SEC = 120;
|
||||
constexpr bool ENABLE_HA_DISCOVERY = true;
|
||||
constexpr bool SERIAL_DEBUG_MODE = false;
|
||||
constexpr bool SERIAL_DEBUG_MODE = true;
|
||||
constexpr bool SERIAL_DEBUG_DUMP_JSON = false;
|
||||
constexpr bool LORA_SEND_BYPASS = false;
|
||||
constexpr bool ENABLE_SD_LOGGING = false;
|
||||
constexpr uint8_t PIN_SD_CS = 25;
|
||||
constexpr bool ENABLE_SD_LOGGING = true;
|
||||
constexpr uint8_t PIN_SD_CS = 13;
|
||||
constexpr uint8_t PIN_SD_MOSI = 15;
|
||||
constexpr uint8_t PIN_SD_MISO = 2;
|
||||
constexpr uint8_t PIN_SD_SCK = 14;
|
||||
constexpr uint16_t SD_HISTORY_MAX_DAYS = 30;
|
||||
constexpr uint16_t SD_HISTORY_MIN_RES_MIN = 1;
|
||||
constexpr uint16_t SD_HISTORY_MAX_BINS = 4000;
|
||||
constexpr uint16_t SD_HISTORY_TIME_BUDGET_MS = 10;
|
||||
constexpr const char *AP_SSID_PREFIX = "DD3-Bridge-";
|
||||
constexpr const char *AP_PASSWORD = "changeme123";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user