aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/i2c-scan-blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/i2c-scan-blocking.rs')
-rw-r--r--examples/src/bin/i2c-scan-blocking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/i2c-scan-blocking.rs b/examples/src/bin/i2c-scan-blocking.rs
index 72f9d09e0..4e203597b 100644
--- a/examples/src/bin/i2c-scan-blocking.rs
+++ b/examples/src/bin/i2c-scan-blocking.rs
@@ -2,7 +2,7 @@
2#![no_main] 2#![no_main]
3 3
4use embassy_executor::Spawner; 4use embassy_executor::Spawner;
5use embassy_mcxa::gpio::{DriveStrength, Pull, SlewRate}; 5use embassy_mcxa::gpio::Pull;
6use embassy_mcxa::Input; 6use embassy_mcxa::Input;
7use embassy_time::Timer; 7use embassy_time::Timer;
8use hal::clocks::config::Div8; 8use hal::clocks::config::Div8;
@@ -25,7 +25,7 @@ async fn main(_spawner: Spawner) {
25 // Note: P0_2 is connected to P1_8 on the FRDM_MCXA276 via a resistor, and 25 // Note: P0_2 is connected to P1_8 on the FRDM_MCXA276 via a resistor, and
26 // defaults to SWO on the debug peripheral. Explicitly make it a high-z 26 // defaults to SWO on the debug peripheral. Explicitly make it a high-z
27 // input. 27 // input.
28 let _pin = Input::new(p.P0_2, Pull::Disabled, DriveStrength::Normal, SlewRate::Slow); 28 let _pin = Input::new(p.P0_2, Pull::Disabled);
29 let mut i2c = I2c::new_blocking(p.LPI2C2, p.P1_9, p.P1_8, config).unwrap(); 29 let mut i2c = I2c::new_blocking(p.LPI2C2, p.P1_9, p.P1_8, config).unwrap();
30 30
31 for addr in 0x01..=0x7f { 31 for addr in 0x01..=0x7f {