SSLM1 / 2_EEPROM

Dependents:   1_24FC1025 4_EEPROM_baro_press 0_twe_Tmode 4_sensor-Integration-function2 ... more

Revision:
0:0dcd9dd39131
Child:
2:8dcae8bac779
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EEPROM.h	Fri Jul 03 02:50:04 2020 +0000
@@ -0,0 +1,20 @@
+#ifndef MBED_EEPROM_H
+#define MBED_EEPROM_H
+
+#include "mbed.h"
+
+
+class EEPROM
+{
+public:
+    EEPROM(PinName sda,PinName scl);
+    ~EEPROM();
+    
+    void write(char address, unsigned int eeaddress, char *data, int size);                 //基本write関数
+    void read(char address, unsigned int eeaddress, char *data, int size);                  //基本read関数
+
+private:
+    I2C i2c;
+};
+
+#endif 
\ No newline at end of file