Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: M24512.h
- Revision:
- 2:1457e305e2b4
- Parent:
- 1:23935352bb22
- Child:
- 3:b6d7714cd171
--- 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%
*