I'm taking Clock data(SCL) from A5 and SDA from A4 port in Arduino UNO board. The code below is used to transfer 8 bit signal and illustrating signal on oscilloscope. The problem is that the 8 bit data vis not transferring and only transferring address bits. Please help me.
#include <Wire.h>
void setup()
{
Wire.begin();
// join i2c bus (address optional for master)
}
//byte x = 0;
void loop(){
Wire.beginTransmission(170);
Wire.write(1);
Wire.write(0x07); // sends five bytes
Wire.endTransmission(); // stop transmitting
/*x++; // increment value
if (x == 127) { // if reached 64th position (max)
x = 0; // start over from lowest value
}*/
delay(10);
}