- Code: Select all
# Initialise the ADC using the default mode (IC = ADS1115)
adc = ADS1x15(ic=0x01)
the correct way to set up an ADS1115 chip and run the example?
Thanks
Bob
Moderators: adafruit_support_bill, adafruit
# Initialise the ADC using the default mode (IC = ADS1115)
adc = ADS1x15(ic=0x01)
tempval = (result[0] << 8) | (result[1])
if tempval > 0x7FFF:
return tempval - 0xFFFF
else:
return (result[0] << 8) | (result[1])
Return to Other Adafruit products
Users browsing this forum: No registered users and 5 guests