Page 2 of 2

Re: I2c with Nucleo L476

Posted: Thu Aug 27, 2020 8:49 pm
by mebab
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():

Code: Select all

Wire.setSDA(PC1); //A4
Wire.setSCL(PC0); // A5
Wire.begin()
or define your own wire instance.

FYI:
https://github.com/stm32duino/wiki/wiki/API#i2C
Thank you so much for your kind help! It works as expected now!

Yours,
Mehrdad