Code: Select all
# Initialise the ADC using the default mode (IC = ADS1115)
adc = ADS1x15(ic=0x01)
Thanks
Bob
[/color][/size]
Moderators: adafruit_support_bill, adafruit
Code: Select all
# Initialise the ADC using the default mode (IC = ADS1115)
adc = ADS1x15(ic=0x01)
Code: Select all
tempval = (result[0] << 8) | (result[1])
if tempval > 0x7FFF:
return tempval - 0xFFFF
else:
return (result[0] << 8) | (result[1])
This should be a bit clearer in the latest code, where a bit more information was added into the example sketches.MichelV wrote:Hey,
Will the erronous multiplier be corrected in the example code for Arduino as well? Cost me a while to find this post (so not *3, but * 0.1875) in the differential example.