This repository has been archived on 2023-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
old-monorepo/modules/control/Firmware/lib/I2CCommunicator/I2CCommunicator.cpp

8 lines
253 B
C++
Raw Normal View History

2022-02-05 19:15:56 +01:00
#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);
2022-02-05 21:04:30 +01:00
w_out.setTimeout(timeout);
2022-02-05 19:15:56 +01:00
}