Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

Committer:
sgrsn
Date:
Sat Apr 16 04:23:13 2016 +0000
Revision:
0:8c3f6ccf349c
Child:
1:f5811e90881f
Child:
2:890301330892
I2C_Master class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sgrsn 0:8c3f6ccf349c 1 #ifndef MBED_I2CMASTER_H
sgrsn 0:8c3f6ccf349c 2 #define MBED_I2CMASTER_H
sgrsn 0:8c3f6ccf349c 3
sgrsn 0:8c3f6ccf349c 4 #include "mbed.h"
sgrsn 0:8c3f6ccf349c 5
sgrsn 0:8c3f6ccf349c 6 class i2c : public I2C//,DigitalOut
sgrsn 0:8c3f6ccf349c 7 {
sgrsn 0:8c3f6ccf349c 8 public:
sgrsn 0:8c3f6ccf349c 9 i2c(PinName p1,PinName p2);
sgrsn 0:8c3f6ccf349c 10
sgrsn 0:8c3f6ccf349c 11 bool put(char addr,char reg, char data ,int size);
sgrsn 0:8c3f6ccf349c 12 };
sgrsn 0:8c3f6ccf349c 13
sgrsn 0:8c3f6ccf349c 14 #endif