Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-STM32F103C8T6_new
eeprom.h
00001 #ifndef EEPROM_H 00002 #define EEPROM_H 00003 00004 #define MCP24AA02_ADDR (0xA0) // 24AA02 2K EEPROM using i2c Address 00005 #define WRITE (0x00) // 24AA02 2K EEPROM using i2c Write bit 00006 #define READ (0x01) // 24AA02 2K EEPROM using i2c Read bit 00007 #define MCP24AA02_MID (0xFA) // Manufacturer ID Address (Read Only 0x29==Microchip) 00008 #define MCP24AA02_DID (0xFB) // Device ID Adress (Read Only 0x41==4 is i2c family and 1 is 2K device) 00009 00010 void readID(int addy); 00011 00012 void readEE(int addy); 00013 00014 void writeEE(int addy,int data); 00015 00016 void eraseEE(void); 00017 00018 #endif
Generated on Sat Jul 16 2022 05:17:47 by
1.7.2