base-station/Firmware/lib/I2CCommunicator/I2CCommunicator.cpp

8 lines
No EOL
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);
}