Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

i2cmaster.h

Committer:
sgrsn
Date:
2016-04-27
Revision:
2:890301330892
Parent:
0:8c3f6ccf349c
Child:
3:cece9736d272
Child:
6:bc6d5a6e9fe1

File content as of revision 2:890301330892:

#ifndef MBED_I2CMASTER_H
#define MBED_I2CMASTER_H

#include "mbed.h"

class i2c : public I2C//,DigitalOut
{
    public:
    i2c(PinName p1,PinName p2);
   
    bool WriteSomeData(char addr,char reg, char data ,int size);
    bool i2c::getSlaveRegistarData(char addr, char reg, char *data ,int size);
};

#endif