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

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Read the normalized 0-1.0 analog value for the channel

src/p/i/pingo-HEAD/experiments/beagle/python/analog_double_read.py   pingo(Download)
 
while True:
    v1 = ADC.read(pino)
    sleep(.01)
    v2 = ADC.read(pino)

src/p/i/pingo-HEAD/experiments/beagle/python/anima.py   pingo(Download)
    for pino in pinos:
        GPIO.output("P9_" + str(pino), GPIO.HIGH)
        tempo = ADC.read('P9_39')
        print tempo
        sleep(tempo)

src/p/i/pingo-HEAD/experiments/beagle/python/analog_read.py   pingo(Download)
 
while True:
    v1 = ADC.read(pino)
    sleep(.01)
    barras = int(v1*51)

src/p/i/pingo-HEAD/experiments/beagle/anima.py   pingo(Download)
    for pino in pinos:
        GPIO.output("P9_" + str(pino), GPIO.HIGH)
        tempo = ADC.read('P9_39')
        print tempo
        sleep(tempo)

src/s/m/smokematic-0.1.0/smokematic/probe.py   smokematic(Download)
        voltage to degrees fahrenheit.
        """
        value = ADC.read(self._probe_pin)
        resistance = (HIGH_RESIST * value) / (1 - value)
        log_resistance = math.log(resistance)

src/a/d/Adafruit_BBIO-0.0.19/test/test_adc.py   Adafruit_BBIO(Download)
    def test_read_adc_no_setup(self):
        with pytest.raises(RuntimeError):   
            ADC.read("P9_40")
 
    def test_read_raw_adc_no_setup(self):
    def test_read_adc(self):
        ADC.setup()
        value = -1
        value = ADC.read("P9_40")
 
            start = time.time() 
            value = -1
            value = ADC.read("AIN1")
            assert value != -1