test

Dependencies:   mbed-STM32F103C8T6 SHT21_ncleee

Committer:
bbw
Date:
Wed Apr 15 11:36:03 2020 +0000
Revision:
1:0fe432e5dfc4
Test_bob_0415

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bbw 1:0fe432e5dfc4 1 #ifndef EEPROM_H
bbw 1:0fe432e5dfc4 2 #define EEPROM_H
bbw 1:0fe432e5dfc4 3
bbw 1:0fe432e5dfc4 4 #define MCP24AA02_ADDR (0xA0) // 24AA02 2K EEPROM using i2c Address
bbw 1:0fe432e5dfc4 5 #define WRITE (0x00) // 24AA02 2K EEPROM using i2c Write bit
bbw 1:0fe432e5dfc4 6 #define READ (0x01) // 24AA02 2K EEPROM using i2c Read bit
bbw 1:0fe432e5dfc4 7 #define MCP24AA02_MID (0xFA) // Manufacturer ID Address (Read Only 0x29==Microchip)
bbw 1:0fe432e5dfc4 8 #define MCP24AA02_DID (0xFB) // Device ID Adress (Read Only 0x41==4 is i2c family and 1 is 2K device)
bbw 1:0fe432e5dfc4 9
bbw 1:0fe432e5dfc4 10 void readID(int addy);
bbw 1:0fe432e5dfc4 11
bbw 1:0fe432e5dfc4 12 void readEE(int addy);
bbw 1:0fe432e5dfc4 13
bbw 1:0fe432e5dfc4 14 void writeEE(int addy,int data);
bbw 1:0fe432e5dfc4 15
bbw 1:0fe432e5dfc4 16 void eraseEE(void);
bbw 1:0fe432e5dfc4 17
bbw 1:0fe432e5dfc4 18 #endif