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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

gopalreddylakki opened this issue · comments

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

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.

Thank you it working