Initial node implementation #4
@ -99,6 +99,7 @@ async fn main(spawner: Spawner) {
|
||||
|
||||
let ads_1256 = ADS_1256.init(Ads1256::new(Ads1256Delay, select_ads1256, ads1256_data_ready));
|
||||
ads_1256.write_config(spi, AUTOCAL_CONF).unwrap();
|
||||
|
||||
let inputs = &*ANALOG_INPUTS.init(Inputs {
|
||||
ai0: StatefulPublisher::new(
|
||||
Cell::new(f32::ElectricPotential::new::<volt>(f32::NAN)).into(),
|
||||
|
@ -120,6 +120,7 @@ async fn main(spawner: Spawner) {
|
||||
|
||||
let ads_1256 =
|
||||
ADS_1256.init(Mutex::new(Ads1256::new(Ads1256Delay, select_ads1256, ads1256_data_ready)));
|
||||
|
||||
ads_1256
|
||||
.get_mut()
|
||||
.write_config(spi.get_mut(), AUTOCAL_CONF)
|
||||
|
Reference in New Issue
Block a user