Skip to content

Commit 5fce562

Browse files
authored
Merge pull request #225 from datdenkikniet/fix_i2c
Fix incorrect SDA and SCL for i2c
2 parents 1adf2c9 + 8e9cfbd commit 5fce562

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/i2c.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,9 @@ mod stm32l4x2_pins {
513513

514514
pins!(I2C1, AF4, SCL: [PA9, PB6], SDA: [PA10, PB7]);
515515

516-
// Technically not present on STM32L432XX and STM32l442XX (pins missing from ref. manual)
517-
pins!(I2C2, AF4, SCL: [PB8, PB10, PB13], SDA: [PB9, PB11, PB14]);
516+
// Both technically not present on STM32L432XX and STM32l442XX (pins missing from ref. manual)
517+
pins!(I2C1, AF4, SCL: [PB8], SDA: [PB9]);
518+
pins!(I2C2, AF4, SCL: [PB10, PB13], SDA: [PB11, PB14]);
518519

519520
pins!(I2C3, AF4, SCL: [PA7], SDA: [PB4]);
520521

0 commit comments

Comments
 (0)