REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    REXduino and TSC2007

    Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
    2
    4
    525
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hrabalo
      last edited by

      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.

      cechuratC 1 Reply Last reply Reply Quote 1
      • cechuratC
        cechurat @hrabalo
        last edited by

        @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

        H 1 Reply Last reply Reply Quote 0
        • H
          hrabalo @cechurat
          last edited by hrabalo

          @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.

          cechuratC 1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat @hrabalo
            last edited by

            @hrabalo Hi,

            Thanks for getting back to us. I'm glad it works for you now.

            Good luck with your project.

            Cheers, Tomas

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

            There is also an outdated REXYGEN community forum.

            Powered by NodeBB.