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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Read the raw analog value for the channel

src/a/d/Adafruit_BBIO-0.0.19/test/test_adc.py   Adafruit_BBIO(Download)
    def test_read_raw_adc_no_setup(self):
        with pytest.raises(RuntimeError):   
            ADC.read_raw("P9_40")
 
    def test_setup_adc(self):
    def test_read_raw_adc(self):
        ADC.setup()
        value = -1
        value = ADC.read_raw("P9_40")