i2c slave class to RaspberryPi with interrupt
Fork of i2cslave by
Diff: i2cslave.h
- Revision:
- 3:5d19d3a231b3
- Parent:
- 2:0dff052266ca
diff -r 0dff052266ca -r 5d19d3a231b3 i2cslave.h --- a/i2cslave.h Thu Jul 12 10:17:19 2018 +0000 +++ b/i2cslave.h Sun Jul 15 14:20:26 2018 +0000 @@ -3,13 +3,17 @@ #include "mbed.h" +#define ReadRequired 1 +#define WriteRequired 2 + namespace mbed { class i2cslave : public I2CSlave { public: - int32_t *Registar; - i2cslave(PinName sda, PinName scl, int32_t *Registar); + int8_t *Registar; + int log[10]; + i2cslave(PinName sda, PinName scl, int8_t *Registar); void getdata();