loop { let mut response = [0u8; 3]; Timer::after_secs(1).await; info!("wake_up"); i2c.write(ADDR, &WAKE_UP).unwrap(); info!("starting"); i2c.write(ADDR, &START_PERIODIC_MESUREMENT).unwrap(); info!("writing"); Timer::after_secs(5).await; info!("writing reading start"); i2c.write_read(ADDR, &READ_MEASUREMENT, &mut response).unwrap(); info!("writing reading"); i2c.write(ADDR, &STOP_PERIODIC_MEASUREMENT).unwrap(); info!("stoping"); info!("response = {:02x}", response[0]); Timer::after_secs(1).await; }