12 lines
261 B
C++
12 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;
|
|
};
|