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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Sends digitalWrite command
to digital pin on Arduino
-------------
inputs:
   pin : digital pin number
   val : either "HIGH" or "LOW"

src/p/y/Python-Arduino-Command-API-HEAD/examples.py   Python-Arduino-Command-API(Download)
    board.pinMode(13, "OUTPUT")
    while True:
        board.digitalWrite(led_pin, "LOW")
        print board.digitalRead(led_pin)  # confirm LOW (0)
        time.sleep(1)
        board.digitalWrite(led_pin, "HIGH")