![](/media/cache/profiles/a7921ea22e084f4c3f660b30749325c3.jpg.50x50_q85.jpg)
mille-feuille board base MCU program
EEPROM24LC01.h
- Committer:
- Info
- Date:
- 23 months ago
- Revision:
- 0:9dc31a0e43ac
File content as of revision 0:9dc31a0e43ac:
/* *************************************************************************** * File Name : EEPROM24LC01.h * * Revision : 1.0 * Notes : * Target Board : mbed LPC824 * * Revision History: *************************************************************************** */ #ifndef _EEPROM24LC01_H_ #define _EEPROM24LC01_H_ #include "mbed.h" #define I2C_ADDR_EEPROM24LC01 0x50 class EEPROM24LC01 { private: int _i2c_address; I2C *_i2c; public: EEPROM24LC01(I2C *i2c, const int address=I2C_ADDR_EEPROM24LC01 ); int byte8_write( char *data ); int readAll( char *data, int size ); }; #endif /* _EEPROM24LC01_H_ */