Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Sep 3, 2024
1 parent 5f5f1bb commit e7504ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hil-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ macro_rules! i2c_pins {
} else if #[cfg(esp32c6)] {
($io.pins.gpio6, $io.pins.gpio7)
} else if #[cfg(esp32h2)] {
($io.pins.gpio4, $io.pins.gpio22)
($io.pins.gpio12, $io.pins.gpio22)
} else if #[cfg(esp32c2)] {
($io.pins.gpio18, $io.pins.gpio19)
} else {
($io.pins.gpio4, $io.pins.gpio7)
($io.pins.gpio18, $io.pins.gpio7)
}
}
}};
Expand Down
3 changes: 1 addition & 2 deletions hil-test/tests/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
#![no_main]

use esp_hal::{
clock::ClockControl,
gpio::Io,
i2c::I2C,
peripherals::{Peripherals, I2C0},
peripherals::I2C0,
prelude::*,
Blocking,
};
Expand Down

0 comments on commit e7504ad

Please sign in to comment.