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

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

src/a/d/Adafruit-Raspberry-Pi-Python-Code-HEAD/Adafruit_ADS1x15/ads1x15_ex_comparator.py   Adafruit-Raspberry-Pi-Python-Code(Download)
# start comparator on channel 2 with a thresholdHigh=200mV and low=100mV
# in traditional mode, non-latching, +/-1.024V and 250sps
adc.startSingleEndedComparator(2, 200, 100, pga=1024, sps=250, activeLow=True, traditionalMode=True, latching=False, numReadings=1)
 
while True: