can anyone please explain me how this code works and what does those function means in External EEPROM 24LC256 I am not able to understand those predefine function of wire library
or else give me some source to learn those function
Wire.beginTransmission(80); Wire.write((long)(address >> 8)); Wire.write((long)(address & 0xFF))
Wire.requestFrom(80,16);
http://playground.arduino.cc/Main/WireLibraryDetailedReference
The following is supposed to send the low byte of "address" but it is wrong. "(long)" should never be present.
Wire.write((long)(address & 0xFF))
80 is the address of the device. See page 8 of datasheet