From 053e44de42aece1699d45b7e959f9afed02a29bf Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sun, 25 Feb 2024 21:00:59 +0200 Subject: [PATCH] update examples --- examples/reading_sensor_data.rs | 3 ++- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/reading_sensor_data.rs b/examples/reading_sensor_data.rs index 2fac44b..9fb14da 100644 --- a/examples/reading_sensor_data.rs +++ b/examples/reading_sensor_data.rs @@ -1,6 +1,6 @@ #![no_std] -use bme680::*; +use bme680::{Bme680, Error, I2CAddress, IIRFilterSize, OversamplingSetting, PowerMode, SettingsBuilder}; use core::result; use core::time::Duration; use embedded_hal::delay::DelayNs; @@ -8,6 +8,7 @@ use linux_embedded_hal as hal; use linux_embedded_hal::{Delay, I2CError}; use log::info; + // Please export RUST_LOG=info in order to see logs in the console. fn main() -> result::Result<(), Error> { diff --git a/src/lib.rs b/src/lib.rs index 910ddda..92e60be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ //! ```no_run -//! use crate::*; +//! use bme680::{Bme680, Error, I2CAddress, IIRFilterSize, OversamplingSetting, PowerMode, SettingsBuilder}; //! use core::result; //! use core::time::Duration; //! use embedded_hal::delay::DelayNs;