Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_differential.py   Adafruit-Raspberry-Pi-Python-Code(Download)
 
# Read channels 2 and 3 in single-ended mode, at +/-4.096V and 250sps
volts2 = adc.readADCSingleEnded(2, 4096, 250)/1000.0
volts3 = adc.readADCSingleEnded(3, 4096, 250)/1000.0
 

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_singleended.py   Adafruit-Raspberry-Pi-Python-Code(Download)
 
# Read channel 0 in single-ended mode using the settings above
volts = adc.readADCSingleEnded(0, gain, sps) / 1000
 
# To read channel 3 in single-ended mode, +/- 1.024V, 860 sps use: