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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Returns the value of a specified
analog pin.
inputs:
   pin : analog pin number for measurement
returns:
   value: integer from 1 to 1023

src/p/y/Python-Arduino-Command-API-HEAD/examples.py   Python-Arduino-Command-API(Download)
    while True:
        time.sleep(0.01)
        val = board.analogRead(pot_pin) / 4
        print val
        board.analogWrite(led_pin, val)