Arduino notes

This is a brain dump of all the arduino hints

Set the new i2c address of a byvac i2c device


  Wire.beginTransmission(0x32);  
   Wire.send(0x99);   //change address command
   Wire.send(0x32 << 1);  //new address (7 bit)
   Wire.send(0x55);  //check code - do not change
   Wire.send(0xaa);  //double check code - do not change
   Wire.send(0x31 << 1);  //current address (7 bit)
   Wire.endTransmission();      // leave I2C bus


Comments