2023-12-21 13:13:06 +08:00
|
|
|
use crate::thermostat::ad5680;
|
|
|
|
use crate::thermostat::MAX1968;
|
|
|
|
|
|
|
|
pub struct Thermostat {
|
|
|
|
max1968: MAX1968,
|
|
|
|
// TADC
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Thermostat{
|
|
|
|
pub fn new (max1968: MAX1968) -> Self {
|
|
|
|
Thermostat{
|
|
|
|
max1968
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pub fn setup(&mut self){
|
|
|
|
self.max1968.setup();
|
|
|
|
}
|
|
|
|
}
|