17 lines
No EOL
348 B
C++
17 lines
No EOL
348 B
C++
#include <I2CCommunicator.h>
|
|
#include <Wire.h>
|
|
|
|
I2CCommunicator::I2CCommunicator(int slaveAddr, __SIZE_TYPE__ bufferSize) : Communicator(bufferSize)
|
|
{
|
|
Wire.begin(slaveAddr);
|
|
//Wire.onReceive(receiveEvent);
|
|
}
|
|
|
|
void I2CCommunicator::sendMessage(int *values)
|
|
{
|
|
}
|
|
|
|
void I2CCommunicator::sendMessage(char *message)
|
|
{
|
|
Wire.println(message);
|
|
} |