DeviceI2C receive()
Create a start condition on the I2C bus, and set things up for receiving data from this device. Returns true if acknowledged.
Parameters
None.
Returns
uint8_t - 0 or 1 depending on whether receive() is acknowledged
Notes
Sends device address with the R/W bit on, using PortI2C start().
Example
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error
PortI2C myBus (1 /*, PortI2C::KHZ400 */);
DeviceI2C myDev (myBus, 0x77);
myDev.send();
byte myDev.receive();
byte data = myDev.read(); // read a byte