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.
-
@hrabalo Hi,
thanks for your question. First of all, I would like to mention that the REXduino repository is not maintained any more - therefore the full functionality is not guaranteed.
REXduino_commands.ino file contains all the commands - have a look at line 605 where communication with MPL115A2 starts (https://github.com/jaroslavs/REXduino/blob/master/REXduino_slave/REXduino_commands.ino#L605)
You can try to modify this function to read out TSC2007.You will also need to modify REXduino_master.c accordingly so the appropriate data will show up at userRecv output.
What about connecting the TSC2007 directly to the RPi I2C pins? Have a look at I2C examples in REXYGEN: 0502 Generic I2C Communication
Hope it helps.
Cheers
Tomas -
@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.
-
@hrabalo Hi,
Thanks for getting back to us. I'm glad it works for you now.
Good luck with your project.
Cheers, Tomas