Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By Eddiie
#74011 Hello,

I have a multi-master I2C setup. The PoC code works fine on Arduino Mega and Uno. However, when I compile it and upload it to my Heltec Wifi 8 Kit, the code runs but hangs on waiting to send ACK.

(It is awesome that I can specify pin numbers to use, can't seem to do this on Mega or Uno.)

I have successfully tested the same pins with the I2C_Master and I2C_Slave examples with success.

Some code:
Code: Select allvoid loop()
{
  Serial.write("Waiting to send ack...");
  while (!send_ack_signal)
  {
    delay(500);
  }



"send_ack_signal" never changes, which is created when you initialize I2C.

Might have to break out the analyzer and see what is happening but thought I'd ask here first.