Hello!
I would like to know if you can read alternatively data from the i2c bus and the 6 analog inputs, on a Uno R4. Can the i2c lines be "silenced" so that A4 and A5 can do their analog input job, and then switch back to the i2c, reading only the dedicated sda/scl pins?
I tried, without success, things like :
Wire.begin()
// Using i2c
...
Wire.end()
// Trying to switch from i2c to Analog Input
pinMode(A4, INPUT); digitalWrite(A4, LOW);
pinMode(A5, INPUT); digitalWrite(A5, LOW);
From what I have read it is impossible for previous Uno versions, but hopefully it is different for R4.
Thank you
Hmm, actually with A4/A5 only, you can connect and handle either i2c or analog sensors, and with A4/A5 + sda/scl pins, you can do the very same thing?
If I understand it correctly, it seems strange that they added these 2 pins.
I have the R4WiFi board, but I cannot check Wire1 functionality due to lack of the special QWIIC 4-pin Connector Cable. The Board could have a 4-pin normal header in parallel with QWIIC connector.