From 595e0a9974d3d998a7d765fcfbed2f0eaf5be9a1 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Fri, 22 Jul 2022 20:34:56 +0000 Subject: [PATCH] i2c is driven from system_clock, noch peripheral_clock. Update example accordingly. --- rp2040-hal/examples/i2c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/examples/i2c.rs b/rp2040-hal/examples/i2c.rs index fe64e49..43423f1 100644 --- a/rp2040-hal/examples/i2c.rs +++ b/rp2040-hal/examples/i2c.rs @@ -89,7 +89,7 @@ fn main() -> ! { scl_pin, // Try `not_an_scl_pin` here 400.kHz(), &mut pac.RESETS, - &clocks.peripheral_clock, + &clocks.system_clock, ); // Write three bytes to the I²C device with 7-bit address 0x2C