Using the simplest code possible to test the library:
#include <Wire.h>
void setup()
{
Wire.begin(); // join i2c bus
Wire.beginTransmission(44); // transmit to device #44 (0x2c)
// device address is specified in datasheet
Wire.write(0xA); // sends value byte
Wire.write(0xA); // sends value byte
Wire.write(0xA); // sends value byte
Wire.endTransmission(); // stop transmitting
}
But my data (three test byte of 0xA) is not getting sent. See image. As you can see, I get start bit, address, and then the stop bit. No data. Where am I going wrong?
beginTransmission
expects unshifted device address (it might need address 22 instead of 44). (It's the address without R/W bit)