From 867c8e9c2f67969eba1ec94e8f36a21c693d39e2 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Thu, 16 Nov 2023 22:07:24 +0000 Subject: [PATCH] Configure i2c pins with pull-up in rustdoc example --- rp2040-hal/src/i2c.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/src/i2c.rs b/rp2040-hal/src/i2c.rs index 2408acdb5..fa1299f7e 100644 --- a/rp2040-hal/src/i2c.rs +++ b/rp2040-hal/src/i2c.rs @@ -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(),