rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

Wire.h and Wire slave.h using in same program not working #926

Closed gopalreddylakki closed 2 months ago

gopalreddylakki commented 2 months ago

if i use both libery at time not working

in my application, I am using 2 i2c ports. in these two one is a slave and another one is working as a master now I am getting an error

image

if I do both separately then it working fine

dewhisna commented 2 months ago

Wire_slave provides BOTH slave and master support. Wire provides only master support. If you need both slave and master, just use Wire_slave only.

gopalreddylakki commented 2 months ago

Thank you it working