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

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

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_differential.py   Adafruit-Raspberry-Pi-Python-Code(Download)
#!/usr/bin/python
 
import time, signal, sys
from Adafruit_ADS1x15 import ADS1x15
 
# Initialise the ADC using the default mode (use default I2C address)
# Set this to ADS1015 or ADS1115 depending on the ADC you are using!
adc = ADS1x15(ic=ADS1115)
 
# Read channels 2 and 3 in single-ended mode, at +/-4.096V and 250sps

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_comparator.py   Adafruit-Raspberry-Pi-Python-Code(Download)
#!/usr/bin/python
 
import time, signal, sys
from Adafruit_ADS1x15 import ADS1x15
 
# Initialise the ADC using the default mode (use default I2C address)
# Set this to ADS1015 or ADS1115 depending on the ADC you are using!
adc = ADS1x15(ic=ADS1115)
 
# start comparator on channel 2 with a thresholdHigh=200mV and low=100mV

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_singleended.py   Adafruit-Raspberry-Pi-Python-Code(Download)
#!/usr/bin/python
 
import time, signal, sys
from Adafruit_ADS1x15 import ADS1x15
 
# Initialise the ADC using the default mode (use default I2C address)
# Set this to ADS1015 or ADS1115 depending on the ADC you are using!
adc = ADS1x15(ic=ADS1115)
 
# Read channel 0 in single-ended mode using the settings above