Documentation **[[arduino_code|Arduino base program code]]** ====== DpI2CEEPROM library ====== ===== Description ===== DpI2CEEPROM Arduino library provide function writing and reading different type of data to I2C EEPROM. (AT24C*). Some code was copy from http://arduino.cc/playground/Main/LibraryForI2CEEPROM Source code is provided as is, without any warranty. Distributetd under CC BY v 3.0 ==== Functions ==== // on inicialization define addres of EEPROM on I2C // caddr - address DpI2CEEPROM(byte caddr); // write boolean value to I2C EEPROM // maddr - memory address // val - value void writeBoolean(unsigned int maddr, boolean val); // write byte value to I2C EEPROM // maddr - memory address // val - value void writeByte(unsigned int maddr, byte val); // write char value to I2C EEPROM // maddr - memory address // val - value void writeChar(unsigned int maddr, char val); // write char array value to I2C EEPROM // maddr - memory address // val - value void writeCharArry(unsigned int maddr, char val[]); // write int value to I2C EEPROM // maddr - memory address // val - value void writeInt(unsigned int maddr, int val); // write unsignet int value to I2C EEPROM // maddr - memory address // val - value void writeUnsignedInt(unsigned int maddr, unsigned int val); // write long value to I2C EEPROM // maddr - memory address // val - value void writeLong(unsigned int maddr, long val); // write unsigned long value to I2C EEPROM // maddr - memory address // val - value void writeUnsignedLong(unsigned int maddr, unsigned long val); // write float value to I2C EEPROM // maddr - memory address // val - value void writeFloat(unsigned int maddr, float val); // read and return boolean value to I2C EEPROM // maddr - memory address boolean readBoolean(unsigned int maddr); // read and return byte value to I2C EEPROM // maddr - memory address byte readByte(unsigned int maddr); // read and return char value to I2C EEPROM // maddr - memory address char readChar(unsigned int maddr); // read and return char array value to I2C EEPROM // maddr - memory address // val - return char array // len - length of char array void readCharArry(unsigned int maddr, char val[], byte len); // read and return int value to I2C EEPROM // maddr - memory address int readInt(unsigned int maddr); // read and return unsigned int value to I2C EEPROM // maddr - memory address unsigned int readUnsignedInt(unsigned int maddr); // read and return long value to I2C EEPROM // maddr - memory address long readLong(unsigned int maddr); // read and return unsigned long value to I2C EEPROM // maddr - memory address unsigned long readUnsignedLong(unsigned int maddr); // read and return float value to I2C EEPROM // maddr - memory address float readFloat(unsigned int maddr); // write block of bytes to defined address // maddr - memory address // buffer - pointer to memory location of variable with data // length - number of bytes in block void WriteBlock(unsigned int maddr, byte * buffer, byte length); // read block of bytes from defined address // maddr - memory address // buffer - pointer to memory location of variable with data // length - number of bytes in block // variable buffer must be large enough to hold length bytes void ReadBlock(unsigned int maddr, byte * buffer, byte length); ==== Contact ==== Author: Dubravko Penezic Email: dpenezic@gmail.com ===== Version ===== ==== Actual ==== * **{{:source_code:arduino:library:dpi2ceeprom:dpi2ceeprom-1.0.0.tar.gz|dpi2ceeprom-1.0.0.tar.gz}}** * **{{:source_code:arduino:library:dpi2ceeprom:dpi2ceeprom-1.0.0.zip|dpi2ceeprom-1.0.0.zip}}** ==== History ==== === V 1.0.0 , 14.02.2012 === * **{{:source_code:arduino:library:dpi2ceeprom:dpi2ceeprom-1.0.0.tar.gz|dpi2ceeprom-1.0.0.tar.gz}}** * **{{:source_code:arduino:library:dpi2ceeprom:dpi2ceeprom-1.0.0.zip|dpi2ceeprom-1.0.0.zip}}**