I'm having a hard time setting up a i2c device on a pi4.
I did i2cdetect -y 1
But when I run the python code
import board
import busio
import adafruit_ads1x15.ads1115 as ADS
i2c = busio.I2C(board.SCL, board.SDA)
from adafruit_ads1x15.analog_in import AnalogIn
ads = ADS.ADS1115(i2c)
chan = AnalogIn(ads, ADS.P0)
print(chan.value, chan.voltage)
I get ValueError: No I2C device at address: 0x48
and printing out the value for board.SCL and board.SDA its 3 and 2 respectively. Am I calling the i2c incorrectly?