13 lines
261 B
C
13 lines
261 B
C
|
#include <StreamCommunicator.h>
|
||
|
#include <Wire.h>
|
||
|
|
||
|
class I2CCommunicator : public StreamCommunicator
|
||
|
{
|
||
|
private:
|
||
|
int slaveAddr;
|
||
|
|
||
|
public:
|
||
|
I2CCommunicator(TwoWire &w_out, int slaveAddr, int timeout);
|
||
|
void sendMessage(const char message[]) override;
|
||
|
};
|