fablabnbg / TRGBArduinoSupport

Basic support (arduino and platformio) for T-RGB device
12 stars 8 forks source link

I2C doesn't seem to be working #8

Open extremerotary opened 1 year ago

extremerotary commented 1 year ago

Myself and others have been struggling to get I2C functioning between the T-RGB and other devices. Do you have a simple working sketch of I2C functioning while still utilizing the LCD display and touch chip? https://github.com/Xinyuan-LilyGO/T-RGB/issues/16

LasseKofoed commented 5 months ago

I would also like a simple working example to start from. Need I2C to get this project working.

euphi commented 5 months ago

I2C is running fine on both "round" and "oval" variant for me.

To try, you can call void TRGBSuppport::scan_iic(void) as shown in the example. It prints available I2C addresses to Serial.

However, I had some problems in the beginning because the pinout of I2C connector is confusing. My boards have a different pinout (as printed on the PCP) than it is stated on LilyGO website. So please double-check if connection is wired correctly. In doubt just measure which pin are GND and 3V3 and try'n'error for SCL and SDA.

LasseKofoed commented 5 months ago

Thank you will try it out.