I am completely new to I2C, so could someone please explain to me what i recorded with Salae LogicAnalyzer...
Is it writing to address "8" and reading from address "9"?
I am trying to learn I2C to control a factory CD player and display using CDM-M3 4.4 CDdrive, PCF8578 & PCF8579 Colum/Row drivers.
Will this code be the equivalent to what is recorded? At least the first two steps...
#include <Wire.h>
void setup() {
Wire.begin(); // join i2c bus (address optional for master)
}
void loop() {
Wire.beginTransmission(8); // transmit to device #8 (0x38)
// device address is specified in datasheet
Wire.write(byte(0x00)); // 0 - sends instruction byte
Wire.write(byte(0x02)); // 2
Wire.endTransmission(); // stop transmitting
Wire.requestFrom(9, 3); // request 3 bytes from slave device #9
delay(500);
}