T-Relay 4, I2C pins
-
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? -
@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);
-
@teastain2 yes, dual row pins)
Thank, you! I will true) -
@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. -
@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 -
@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.