![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Dependencies: mbed-STM32F103C8T6 SHT21_ncleee
Diff: eeprom.h
- Revision:
- 1:0fe432e5dfc4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eeprom.h Wed Apr 15 11:36:03 2020 +0000 @@ -0,0 +1,18 @@ +#ifndef EEPROM_H +#define EEPROM_H + +#define MCP24AA02_ADDR (0xA0) // 24AA02 2K EEPROM using i2c Address +#define WRITE (0x00) // 24AA02 2K EEPROM using i2c Write bit +#define READ (0x01) // 24AA02 2K EEPROM using i2c Read bit +#define MCP24AA02_MID (0xFA) // Manufacturer ID Address (Read Only 0x29==Microchip) +#define MCP24AA02_DID (0xFB) // Device ID Adress (Read Only 0x41==4 is i2c family and 1 is 2K device) + +void readID(int addy); + +void readEE(int addy); + +void writeEE(int addy,int data); + +void eraseEE(void); + +#endif \ No newline at end of file