You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this code works on AT24C512, but when we provide EEPROM address more than 255 it does not work. Type casting for most significant Byte causes that problem, Wire.beginTransmission(DEV_ADDR); Wire.write((uint8_t)addr>>8); Wire.write((uint8_t)addr); Wire.write(pbuf, len);
this code works on AT24C512, but when we provide EEPROM address more than 255 it does not work. Type casting for most significant Byte causes that problem,
Wire.beginTransmission(DEV_ADDR); Wire.write((uint8_t)addr>>8); Wire.write((uint8_t)addr); Wire.write(pbuf, len);
code below works fine.
Wire.beginTransmission(DEV_ADDR); Wire.write((uint8_t) (addr>>8) ); Wire.write((uint8_t)addr); Wire.write(pbuf, len);
putting addr>>8 in bracket.
The text was updated successfully, but these errors were encountered: