Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
playfulFence committed Sep 4, 2024
commit 820ad79eeb617e09b34493c00760641e5aca29bc
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