Skip to content

Commit

Permalink
Merge pull request #720 from jannic/i2c-pull-up
Browse files Browse the repository at this point in the history
Configure i2c pins with pull-up in rustdoc example
  • Loading branch information
ithinuel authored Nov 17, 2023
2 parents 9e2bad8 + 867c8e9 commit cb0d2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2040-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//!
//! let mut i2c = I2C::i2c1(
//! peripherals.I2C1,
//! pins.gpio18.into_function(), // sda
//! pins.gpio19.into_function(), // scl
//! pins.gpio18.into_pull_up_input().into_function(), // sda
//! pins.gpio19.into_pull_up_input().into_function(), // scl
//! 400.kHz(),
//! &mut peripherals.RESETS,
//! 125_000_000.Hz(),
Expand Down

0 comments on commit cb0d2e9

Please sign in to comment.