Hi, I have a question about I2C communication in REXduino. In the REXduino_slave example, there is an MPL115A2 barometer, but I would like to implement a TSC2007 touchscreen controller instead. First of all, all the I2C examples in REXduino_slave are commented out. This is because a few lines above, there is a verbose version of the "Board info" command. Next, I would like to ask where I can find the data from the I2C device in the REXYGEN studio. Specifically, I mean which pin on the Arduino_UNO block. Thank you very much.
Best posts made by hrabalo
-
REXduino and TSC2007
Latest posts made by hrabalo
-
RE: REXduino and TSC2007
@cechurat Thank you for your very quick reply.
I run Rexygen studio on my PC with W10, however in REXduino_slave I include "Adafruit_TSC2007.h" and I process the incoming data in void command 4.
It is solved.
Ondrej.
-
REXduino and TSC2007
Hi, I have a question about I2C communication in REXduino. In the REXduino_slave example, there is an MPL115A2 barometer, but I would like to implement a TSC2007 touchscreen controller instead. First of all, all the I2C examples in REXduino_slave are commented out. This is because a few lines above, there is a verbose version of the "Board info" command. Next, I would like to ask where I can find the data from the I2C device in the REXYGEN studio. Specifically, I mean which pin on the Arduino_UNO block. Thank you very much.
-
REXduino 4-wire touchscreen
Hi, I would like to measure the position on the 4-wire touch screen. For this I have to switch A0, A1, A2, A3 between analog input and digital output. Is it possible in REXduino?
Thank you.
This is code for Arduino and I would like to implement in REXduino.
int X,Y; //Touch Coordinates are stored in X,Y variable pinMode(Y1,INPUT); pinMode(Y2,INPUT); digitalWrite(Y2,LOW); pinMode(X1,OUTPUT); digitalWrite(X1,HIGH); pinMode(X2,OUTPUT); digitalWrite(X2,LOW); X = (analogRead(Y1))/(1024/Xresolution); //Reads X axis touch position pinMode(X1,INPUT); pinMode(X2,INPUT); digitalWrite(X2,LOW); pinMode(Y1,OUTPUT); digitalWrite(Y1,HIGH); pinMode(Y2,OUTPUT); digitalWrite(Y2,LOW); Y = (analogRead(X1))/(1024/Yresolution); //Reads Y axis touch position```