Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

Revision:
0:8c3f6ccf349c
Child:
1:f5811e90881f
Child:
2:890301330892
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/i2cmaster.h	Sat Apr 16 04:23:13 2016 +0000
@@ -0,0 +1,14 @@
+#ifndef MBED_I2CMASTER_H
+#define MBED_I2CMASTER_H
+
+#include "mbed.h"
+
+class i2c : public I2C//,DigitalOut
+{
+    public:
+    i2c(PinName p1,PinName p2);
+   
+    bool put(char addr,char reg, char data ,int size);
+};
+
+#endif
\ No newline at end of file