8 lines
253 B
C++
8 lines
253 B
C++
|
#include <I2CCommunicator.h>
|
||
|
#include <Wire.h>
|
||
|
|
||
|
I2CCommunicator::I2CCommunicator(TwoWire &w_out, int slaveAddr, int timeout, __SIZE_TYPE__ bufferSize) : StreamCommunicator(w_out, bufferSize)
|
||
|
{
|
||
|
w_out.begin(slaveAddr);
|
||
|
w_out.setTimeout(timeout);
|
||
|
}
|