I2c with Nucleo L476

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: I2c with Nucleo L476

Post 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
Post Reply

Return to “IDE's”