move to typescript, testmode, shiftregister revival

This commit is contained in:
2023-12-23 01:59:00 +01:00
parent fd823217aa
commit 1e40e2e3ba
25 changed files with 32695 additions and 353 deletions

View File

@@ -13,14 +13,20 @@ pub struct Config {
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
night_lamp_only_when_dark: u8,
plants: [Plant;PLANT_COUNT]
}
#[derive(Serialize, Deserialize)]
pub struct Plant{
target_moisture: u8,
pump_time_s: u16,
pump_cooldown_min: u16,
pump_hour_start: heapless::String<5>,
pump_hour_end: heapless::String<5>
}
#[derive(Serialize, Deserialize)]
#[derive(Debug)]