EEPROM 24LC01 libraly
Embed:
(wiki syntax)
Show/hide line numbers
EEPROM24LC01.h
00001 /* 00002 *************************************************************************** 00003 * File Name : EEPROM24LC01.h 00004 * 00005 * Revision : 1.0 00006 * Notes : 00007 * Target Board : mbed LPC 00008 * 00009 * Revision History: 00010 *************************************************************************** 00011 */ 00012 00013 #ifndef _EEPROM24LC01_H_ 00014 #define _EEPROM24LC01_H_ 00015 00016 #include "mbed.h" 00017 #define I2C_ADDR_EEPROM24LC01 0x50 00018 00019 class EEPROM24LC01 00020 { 00021 private: 00022 int _i2c_address; 00023 I2C *_i2c; 00024 00025 public: 00026 EEPROM24LC01(I2C *i2c, const int address=I2C_ADDR_EEPROM24LC01 ); 00027 int byte8_write( char *data ); 00028 int readAll( char *data, int size ); 00029 }; 00030 00031 #endif /* _EEPROM24LC01_H_ */
Generated on Wed Aug 3 2022 12:17:28 by 1.7.2