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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Sends analogWrite pwm command
to pin on Arduino
-------------
inputs:
   pin : pin number
   val : integer 0 (off) to 255 (always on)

src/p/y/Python-Arduino-Command-API-HEAD/examples.py   Python-Arduino-Command-API(Download)
            if k > 255:
                k = 510 - k
            board.analogWrite(led_pin, k)
 
 
        val = board.analogRead(pot_pin) / 4
        print val
        board.analogWrite(led_pin, val)