diff options
| author | 1-rafael-1 <[email protected]> | 2025-09-15 20:07:18 +0200 |
|---|---|---|
| committer | 1-rafael-1 <[email protected]> | 2025-09-15 20:07:18 +0200 |
| commit | 6bb3d2c0720fa082f27d3cdb70f516058497ec87 (patch) | |
| tree | 5a1e255cff999b00800f203b91a759c720c973e5 /examples/rp/src/bin/i2c_blocking.rs | |
| parent | eb685574601d98c44faed9a3534d056199b46e20 (diff) | |
| parent | 92a6fd2946f2cbb15359290f68aa360953da2ff7 (diff) | |
Merge branch 'main' into rp2040-rtc-alarm
Diffstat (limited to 'examples/rp/src/bin/i2c_blocking.rs')
| -rw-r--r-- | examples/rp/src/bin/i2c_blocking.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/rp/src/bin/i2c_blocking.rs b/examples/rp/src/bin/i2c_blocking.rs index c9c8a2760..317921374 100644 --- a/examples/rp/src/bin/i2c_blocking.rs +++ b/examples/rp/src/bin/i2c_blocking.rs | |||
| @@ -49,7 +49,9 @@ async fn main(_spawner: Spawner) { | |||
| 49 | let scl = p.PIN_15; | 49 | let scl = p.PIN_15; |
| 50 | 50 | ||
| 51 | info!("set up i2c "); | 51 | info!("set up i2c "); |
| 52 | let mut i2c = i2c::I2c::new_blocking(p.I2C1, scl, sda, Config::default()); | 52 | // Default I2C config enables internal pull-up resistors. |
| 53 | let config = Config::default(); | ||
| 54 | let mut i2c = i2c::I2c::new_blocking(p.I2C1, scl, sda, config); | ||
| 53 | 55 | ||
| 54 | use mcp23017::*; | 56 | use mcp23017::*; |
| 55 | 57 | ||
