mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
i2c is driven from system_clock, noch peripheral_clock. Update example accordingly.
This commit is contained in:
parent
f8984a9eac
commit
595e0a9974
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue