Forum >I2C Restart Sequence
I2C Restart Sequence

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!
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
After this "Wire.endTransmission();", it just request something again by "Wire.requestFrom(deviceaddress,1);", so it seems that you can go on your task...
Leff
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...

2016-06-12 23:35:18 Sorry, may I confirm that do you mean Bluno or Bluno M3, they are different?
Leff
