1
Fork 0

reduce tof enable time budget

This commit is contained in:
Andy Killorin 2025-01-14 16:08:43 -05:00
parent 1c04cf8346
commit d0b66575d9
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

View file

@ -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");