Skip to content

Commit 441a7a9

Browse files
committed
Fixed use of deprecated I2C functions in examples
1 parent d69f219 commit 441a7a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/i2s-audio-out-dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn main() -> ! {
104104

105105
let mut delay = Delay::new(cp.SYST, clocks);
106106

107-
let i2c = I2c::i2c1(
107+
let i2c = I2c::new(
108108
dp.I2C1,
109109
(
110110
gpiob.pb6.into_alternate_af4_open_drain(),

examples/i2s-audio-out.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn main() -> ! {
102102

103103
let mut delay = Delay::new(cp.SYST, clocks);
104104

105-
let i2c = I2c::i2c1(
105+
let i2c = I2c::new(
106106
dp.I2C1,
107107
(
108108
gpiob.pb6.into_alternate_af4_open_drain(),

0 commit comments

Comments
 (0)