reduce tof enable time budget
This commit is contained in:
parent
1c04cf8346
commit
d0b66575d9
1 changed files with 1 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
|||
#![no_main]
|
||||
#![allow(async_fn_in_trait)]
|
||||
|
||||
mod vl53l0;
|
||||
|
||||
use core::array;
|
||||
use core::borrow::BorrowMut;
|
||||
|
@ -38,7 +37,6 @@ use rand::RngCore;
|
|||
use reqwless::response;
|
||||
use static_cell::StaticCell;
|
||||
use defmt_rtt as _;
|
||||
use vl53l0::RegAddr::*;
|
||||
|
||||
bind_interrupts!(struct Irqs {
|
||||
PIO0_IRQ_0 => InterruptHandler<PIO0>;
|
||||
|
@ -109,7 +107,7 @@ async fn main(spawner: Spawner) {
|
|||
tof.set_address(0x32).unwrap();
|
||||
info!("4");
|
||||
tof2on.set_high();
|
||||
Timer::after_millis(13).await;
|
||||
Timer::after_micros(1200).await; // DS11555 3.2
|
||||
info!("5");
|
||||
let mut tof2 = vl53l0x::VL53L0x::new(RefCellDevice::new(&bus1)).unwrap();
|
||||
info!("6");
|
||||
|
|
Loading…
Reference in a new issue