test
Dependencies: mbed-STM32F103C8T6 SHT21_ncleee
eeprom.h
- Committer:
- bbw
- Date:
- 2020-04-15
- Revision:
- 1:0fe432e5dfc4
File content as of revision 1:0fe432e5dfc4:
#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