Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
284 stars 123 forks source link

Unable to use I2C communication #179

Closed amenoni closed 2 years ago

amenoni commented 2 years ago

Hi, appreciate your help with a problem I'm having trying to use the SDA and SCL port to make an I2C communication with the board ADS1115 I'm using PIN 22 for SCL and 21 for SDA The code is the one provided as example in the adafruit repo https://github.com/adafruit/Adafruit_ADS1X15/blob/master/examples/singleended/singleended.ino This same code in an Arduino Uno or Nano works perfectly but in this board the script says that fails to initialize the ADS

Hello! Getting single-ended readings from AIN0..3 ADC Range: +/- 6.144V (1 bit = 3mV/ADS1015, 0.1875mV/ADS1115) Failed to initialize ADS.

Really apreciate your help to solve this problem Thanks

amenoni commented 2 years ago

My addressing was bad, please discard this issue, my apologize