partition table
This commit is contained in:
parent
a9ab4ee99b
commit
dd949a1be1
5
rust/partitions.csv
Normal file
5
rust/partitions.csv
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
nvs, data, nvs, 0x9000, 0x4000,
|
||||||
|
otadata, data, ota, 0xd000, 0x2000,
|
||||||
|
phy_init, data, phy, 0xf000, 0x1000,
|
||||||
|
ota_0, app, ota_0, 0x10000, 0x180000,
|
||||||
|
ota_1, app, ota_1, 0x190000, 0x180000,
|
|
24
rust/src/config.rs
Normal file
24
rust/src/config.rs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
|
||||||
|
use crate::PLANT_COUNT;
|
||||||
|
pub struct Config {
|
||||||
|
ssid: heapless::String<32>,
|
||||||
|
password: Option<heapless::String<64>>,
|
||||||
|
|
||||||
|
tank_sensor_enabled: bool,
|
||||||
|
tank_full_ml: u32,
|
||||||
|
tank_warn_percent: u8,
|
||||||
|
|
||||||
|
plantcount: u16,
|
||||||
|
|
||||||
|
pump_duration_ms: [u16;PLANT_COUNT],
|
||||||
|
pump_cooldown_min: [u16;PLANT_COUNT],
|
||||||
|
pump_hour_start: [u8;PLANT_COUNT],
|
||||||
|
pump_hour_end: [u8;PLANT_COUNT],
|
||||||
|
|
||||||
|
night_lamp_hour_start: u8,
|
||||||
|
night_lamp_hour_end: u8,
|
||||||
|
night_lamp_only_when_dark: u8
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user