EEPROMTEST

Dependencies:   ADS1015 mbed

Fork of Test_nucleo_MCUUU by BAP TUDelft

Revision:
10:5a0bad3fb422
Parent:
9:cc559f905411
Child:
11:41bdd2f555fe
--- a/main.cpp	Wed May 09 15:00:54 2018 +0000
+++ b/main.cpp	Wed May 16 11:06:40 2018 +0000
@@ -14,7 +14,7 @@
 
 int i2c__frequency = 100000;                                                              // I2C Frequency.
 int baud_rate = 115200;                                                             // Baud rate.
-const int EEPROM_adr=0x00;//8Bit address for I2C to EEPROM
+const int EEPROM_adr=0xa0;//8Bit address for I2C to EEPROM
 const int EE_len =1; //Length EEprom vector to be sent
 Timer timer;
 
@@ -35,8 +35,8 @@
     }
 }
 //Writing EEPROM through I2C
-void EEPROM_write(char *EEPROM_dat,int len){
-    i2c.write(EEPROM_adr,EEPROM_dat,len);
+void EEPROM_write(char EEPROM_dat,int len){
+    i2c.write(EEPROM_adr,&EEPROM_dat,len);
 }
 //Reading EEPROM through I2C, returns vector
 string EEPROM_read(){