Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-Relay 4, I2C pins

    Technical Discussion
    2
    6
    575
    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.
    • V
      Vadym last edited by

      Hello everyone!
      I need help with a LilyGo T-Relay board for 4 relays.
      I need to use I2C to communicate with the SCD30 but can't identify the I2C pins. Would anyone be able to help me?

      teastain2 1 Reply Last reply Reply Quote 0
      • teastain2
        teastain2 @Vadym last edited by

        @vadym You have a dual row of pins on the board?
        Any of those GPIO could be used for I2C.
        In your sketch you have to tell the Wire library which two pins they are.

        Wire.begin(SDA, SCL);
        
        V 1 Reply Last reply Reply Quote 0
        • V
          Vadym @teastain2 last edited by

          @teastain2 yes, dual row pins)
          Thank, you! I will true)

          1 Reply Last reply Reply Quote 0
          • V
            Vadym last edited by Vadym

            @teastain2 It does not work, and a specific I2C connection does not work. Scanning devices with I2C doesn't help either. Moreover, this code and connection immediately works on other Arduino devices, but it does not work with lilygo, does not find devices via I2C (the rest of the code works).
            Is it possible that this is due to incompatibility/incorrect operation of the libraries?
            I tried to use the libraries that are here, but the Arduino IDE constantly offers to update them, and additionally tried to update some libraries, but nothing happened either.

            teastain2 1 Reply Last reply Reply Quote 0
            • teastain2
              teastain2 @Vadym last edited by

              @vadym It is hard to understand!
              Can you post a sample stripped-down test sketch of a simple I2C device and I will take a look.
              I often use a M5Stack ENV sensor with a SHT3x sensor in a very minimalist sketch.
              -Terry

              V 1 Reply Last reply Reply Quote 0
              • V
                Vadym @teastain2 last edited by

                @teastain2 I think I have a similar problem with this one
                But I haven't been able to fix it yet.
                Some version of the sketch and a couple of screenshots are here
                If you need more information, please let me know. Thank you for trying to help.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors