Hello i am reverse engineering a touch panel from its original controller. I have used a logic analyze to analyze the transaction. and i have already identfied the data of interest
Now what makes this very hard since this is i2c i do not know who is the one "sending" the data since the line is biderectional.
As you can see the logic analyzer have identified seven "cluster" per transaction The first one is the address simple enough, the second one is what i think is an address, third and the seventh are the register of interest since when i press a button there will be a change on those address depending on the button pressed as for 4th,5th,6th i could not get them to change but it does not matter as all button presses are already mapped to the 3r and 7th register.
Now i would like to swap out its original controller with an Arduino, and i have to recreate that request , i already have checked the voltage level and its 5v.
Before i try to communicate with an arduuino, iwould like to ask if i am correct in doing this
#include <Wire.h>
void setup() {
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
}
void loop() {
Wire.requestFrom(0x53, 6); // request 6 bytes from slave device #0x53
while (Wire.available()) { // slave may send less than requested
char c = Wire.read(); // receive a byte as character
Serial.print(c); // print the character
}