arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.22k stars 1.04k forks source link

Arduino UNO R4 and Wire library #547

Closed Pascal2739 closed 11 months ago

Pascal2739 commented 11 months ago

Hello, for several years, I have been working with UNO R3 cards linked together by an I2C bus. Each of these cards are used alternately as a “Master” component and a “Slave” component. In my sketch, the Wire library is declared "slave" by the Wire.begin(address) instruction and everything works without a hitch. Recently, I purchased a UNO R4 card and it too will be integrated into my I2C network. On the I2C bus, a DS1307 real-time clock is installed which works perfectly with UNO R3 or MEGA cards. However, on the R4, access to the DS1307 only works if the card is declared as a master component exclusively (Wire.begin()). I tried using the Wire.end() function, but it had no effect. Does anyone have an idea to resolve this problem? THANKS

Pascal2739 commented 11 months ago

Déplacé sur ArduinoCore-renesas.