Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

Revision:
1:f5811e90881f
Parent:
0:8c3f6ccf349c
--- a/i2cmaster.cpp	Sat Apr 16 04:23:13 2016 +0000
+++ b/i2cmaster.cpp	Sat Apr 16 04:43:42 2016 +0000
@@ -1,7 +1,7 @@
 #include "i2cmaster.h"
 
 
-i2c::i2c(PinName p1,PinName p2) : I2C(p1,p2)
+i2c::i2c(PinName sda,PinName scl) : I2C(sda, scl)
 {
     frequency(400000);
 }
@@ -13,3 +13,4 @@
     N|= I2C::write(addr,Data,size);
     return N;
 }
+