maybe...
This commit is contained in:
parent
15603def12
commit
8701bdeaf3
2 changed files with 12 additions and 7 deletions
6
co2_sensor/partitions.csv
Normal file
6
co2_sensor/partitions.csv
Normal file
|
@ -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
|
|
|
@ -41,6 +41,12 @@ output:
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: mhz19
|
- platform: mhz19
|
||||||
|
update_interval: 30s
|
||||||
|
automatic_baseline_calibration: false
|
||||||
|
uart_id: uart_mhz19
|
||||||
|
temperature:
|
||||||
|
name: "MH-Z19 Temperature"
|
||||||
|
id: mhz19_temp
|
||||||
co2:
|
co2:
|
||||||
name: "MH-Z19 CO2"
|
name: "MH-Z19 CO2"
|
||||||
id: mhz19_co2
|
id: mhz19_co2
|
||||||
|
@ -96,13 +102,6 @@ sensor:
|
||||||
static int num_executions = 0;
|
static int num_executions = 0;
|
||||||
ESP_LOGD("main", "I am at execution number %d", num_executions);
|
ESP_LOGD("main", "I am at execution number %d", num_executions);
|
||||||
num_executions += 1;
|
num_executions += 1;
|
||||||
temperature:
|
|
||||||
name: "MH-Z19 Temperature"
|
|
||||||
id: mhz19_temp
|
|
||||||
update_interval: 30s
|
|
||||||
automatic_baseline_calibration: false
|
|
||||||
uart_id: uart_mhz19
|
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
sda: GPIO21
|
sda: GPIO21
|
||||||
scl: GPIO22
|
scl: GPIO22
|
||||||
|
|
Loading…
Reference in a new issue