diff --git a/co2_sensor/partitions.csv b/co2_sensor/partitions.csv new file mode 100644 index 0000000..8fafdf1 --- /dev/null +++ b/co2_sensor/partitions.csv @@ -0,0 +1,6 @@ +nvs, data, nvs, 0x009000, 0x005000, +otadata, data, ota, 0x00e000, 0x002000, +app0, app, ota_0, 0x010000, 0x190000, +app1, app, ota_1, 0x200000, 0x190000, +eeprom, data, 0x99, 0x390000, 0x001000, +spiffs, data, spiffs, 0x391000, 0x00F000 diff --git a/co2sensor.yaml b/co2sensor.yaml index 779e5ec..5908446 100644 --- a/co2sensor.yaml +++ b/co2sensor.yaml @@ -41,6 +41,12 @@ output: sensor: - platform: mhz19 + update_interval: 30s + automatic_baseline_calibration: false + uart_id: uart_mhz19 + temperature: + name: "MH-Z19 Temperature" + id: mhz19_temp co2: name: "MH-Z19 CO2" id: mhz19_co2 @@ -96,13 +102,6 @@ sensor: static int num_executions = 0; ESP_LOGD("main", "I am at execution number %d", num_executions); num_executions += 1; - temperature: - name: "MH-Z19 Temperature" - id: mhz19_temp - update_interval: 30s - automatic_baseline_calibration: false - uart_id: uart_mhz19 - i2c: sda: GPIO21 scl: GPIO22