DeviceI2C write()

Write a byte to the currently addressed device. Must be preceded by a proper PortI2C start() call. Returns true if the device acknowledged the byte (i.e. will accept more data).

#include #include // needed to avoid a linker error :(

PortI2C myBus (1 /*, PortI2C::KHZ400 */);
DeviceI2C myDev (myBus, 0x77);
byte myDev.write(byte data);

Parameters

data

Data byte to be sent.

Notes

This function is defined in both class PortI2C and in class DeviceI2C, and has the same effect in both.