Skip to content

Commit

Permalink
Fix examples, move lp i2c back to i2c root
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 4, 2024
1 parent f46bd42 commit 1f477cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions esp-hal/src/i2c/master/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,3 @@ impl Instance for AnyI2c {
}
}
}

#[cfg(lp_i2c0)]
pub mod lp_i2c;
3 changes: 3 additions & 0 deletions esp-hal/src/i2c/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
//! (SDA) and serial clock line (SCL), pulled up by resistors.

pub mod master;

#[cfg(lp_i2c0)]
pub mod lp_i2c;
2 changes: 1 addition & 1 deletion examples/src/bin/embassy_i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use embassy_executor::Spawner;
use embassy_time::{Duration, Timer};
use esp_backtrace as _;
use esp_hal::{gpio::Io, i2c::master::I2c, prelude::*, timer::timg::TimerGroup};
use esp_hal::{gpio::Io, i2c::master::I2c, timer::timg::TimerGroup};
use lis3dh_async::{Lis3dh, Range, SlaveAddr};

#[esp_hal_embassy::main]
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/embassy_i2c_bmp180_calibration_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use embassy_executor::Spawner;
use embassy_time::{Duration, Timer};
use esp_backtrace as _;
use esp_hal::{gpio::Io, i2c::master::I2c, prelude::*, timer::timg::TimerGroup};
use esp_hal::{gpio::Io, i2c::master::I2c, timer::timg::TimerGroup};

#[esp_hal_embassy::main]
async fn main(_spawner: Spawner) {
Expand Down

0 comments on commit 1f477cd

Please sign in to comment.