Martyn Gilbertson / M24512
Revision:
2:1457e305e2b4
Parent:
1:23935352bb22
Child:
3:b6d7714cd171
diff -r 23935352bb22 -r 1457e305e2b4 M24512.h
--- a/M24512.h	Fri Jun 07 14:50:42 2019 +0100
+++ b/M24512.h	Thu Aug 29 12:48:39 2019 +0100
@@ -14,8 +14,8 @@
 #ifndef _M24512_H_
 #define _M24512_H_
 
-#include "mbed.h"
-
+#include <stdint.h>
+#include <i2c.h>
 
 /** Driver for reading and writing to M24512 eeprom
  *
@@ -47,7 +47,7 @@
  * }
  * @endcode
  */
-class M24512 : private NonCopyable<M24512>
+class M24512
 {
 
 	public:
@@ -127,14 +127,11 @@
 	private:
 
         /*! i2c driver class */
-		I2C _i2c;
+		mbed::I2C _i2c;
 
         /*! memory address */
 		uint8_t _addr;
 
-
-	protected:
-
         /** Write to single page
          * @note  this will only write a maximum of %page_size%
          *