I2C address beware

05 Jul 2010

I had problems connecting to an I2C eeprom whose address from the data sheet was given as 0x51. I used this address in the MBED code but the eeprom didn’t acknowledge this. Then I remembered that an I2C address is 7 bits long and for the address to be handled by the MBED code it needs to be shifted by 1 bit to the left  -  multiply by 2. So 0x51 becomes 0xA2 and the eeprom can now be addressed

01 Sep 2010

Not so much a but as something to put in the documentation for the I2C class.