Forum >I2C Restart Sequence
Bluno General Arduino

I2C Restart Sequence

userHead purav70 2016-06-09 10:02:18 3096 Views3 Replies
Hi guys,

For arduino, the restart sequence for I2C is Wire.endtransmission(false), however I know that bluno does not allow a parameter in endTransmission(). In light of this, how can I sent a restart sequence?

Thanks!
2016-06-22 02:05:46 Hi purav70,

I read this on the wiki

Code: Select all
byte i2c_eeprom_read_byte( int deviceaddress, unsigned int eeaddress ) {
    byte rdata = 0xFF;
    Wire.beginTransmission(deviceaddress);
    Wire.write((int)(eeaddress >> 8)); // MSB
    Wire.write((int)(eeaddress & 0xFF)); // LSB
    Wire.endTransmission();
    Wire.requestFrom(deviceaddress,1);
    if (Wire.available()) rdata = Wire.read();
    return rdata;
  }


After this "Wire.endTransmission();", it just request something again by "Wire.requestFrom(deviceaddress,1);", so it seems that you can go on your task...
userHeadPic Leff
2016-06-21 16:21:33 Sorry I meant Bluno M3 userHeadPic purav70
2016-06-12 23:35:18 Sorry, may I confirm that do you mean Bluno or Bluno M3, they are different? userHeadPic Leff