1 Reply Latest reply on Jun 8, 2015 2:30 PM by Intel_Alvarado

    Wire.endTransmission() generates a 1 as R/W bit?

    rahmanqureshi

      I'm using the intel edison with the expansion board with the arduino ide that it comes with. I have a very simple sketch that constantly transmits nothing to the slave. On the oscilloscope, I see the start condition with the following 9 bits: 01001110. The write bit is 0 though. I confirmed that it should be a 0 using the arduino mini. What can I do to fix this problem?

       

      #include <Wire.h>

       

      #define hAddr  0x27

       

      void setup()

      {

        Serial.begin(9600);

        Serial.println("Serial begun");

        Wire.begin();

        Serial.println("Wire begun");

      }

      void loop()

      {

        byte reply;

        Wire.beginTransmission(hAddr);

        reply = Wire.endTransmission();

        Serial.println(reply);

      }