#41505
Hi there! Having problem with establishing the IIC communication between M0 Mainboard and Arduino Uno. Using "Wire" Library, tried connecting via multiplexed SDA, SCL and 2,3 pins. Cant find any guide at wiki.dfrobot.com. Scanning from Uno shows 0 devices found, changing roles and scanning from M0 shows 112 devices found
Arduino IDE v 1.8.12, M0 v 1.0.3

Scanner code:
Code: Select all
void _scanner()
{
  Serial.println ();
  Serial.println ("I2C scanner. Scanning ...");
  byte count = 0;

  Wire.begin();
  for (byte i = 8; i < 120; i++)
  {
    Wire.beginTransmission (i);          // Begin I2C transmission Address (i)
    if (Wire.endTransmission () == 0)  // Receive 0 = success (ACK response) 
    {
      Serial.print ("Found address: ");
      Serial.print (i, DEC);
      Serial.print (" (0x");
      Serial.print (i, HEX);     // PCF8574 7 bit address
      Serial.println (")");
      count++;
    }
  }
  Serial.print ("Found ");      
  Serial.print (count, DEC);        // numbers of devices
  Serial.println (" device(s).");
}
I need to request 2 bytes of data from M0 mainboard, process recieved data and then send back five two-bytes values. Alredy implemented for Uno-slave and esp32-master (M5Stack). But now i`m trying to swap uno for M0 and this IIC issue blocking