i2c is driven from system_clock, noch peripheral_clock. Update example accordingly.

This commit is contained in:
Jan Niehusmann 2022-07-22 20:34:56 +00:00
parent f8984a9eac
commit 595e0a9974

View file

@ -89,7 +89,7 @@ fn main() -> ! {
scl_pin, // Try `not_an_scl_pin` here scl_pin, // Try `not_an_scl_pin` here
400.kHz(), 400.kHz(),
&mut pac.RESETS, &mut pac.RESETS,
&clocks.peripheral_clock, &clocks.system_clock,
); );
// Write three bytes to the I²C device with 7-bit address 0x2C // Write three bytes to the I²C device with 7-bit address 0x2C