Re: I2c with Nucleo L476
Posted: Thu Aug 27, 2020 8:49 pm
Thank you so much for your kind help! It works as expected now!fpiSTM wrote: Thu Aug 27, 2020 4:30 pm On Nucleo L476 you can use A4/A5 for I2C.
If you want use the default Wire instance then simply do before the Wire.begin():
or define your own wire instance.Code: Select all
Wire.setSDA(PC1); //A4 Wire.setSCL(PC0); // A5 Wire.begin()
FYI:
https://github.com/stm32duino/wiki/wiki/API#i2C
Yours,
Mehrdad