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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Sets I/O mode of pin
inputs:
   pin: pin number to toggle
   val: "INPUT" or "OUTPUT"

src/p/y/Python-Arduino-Command-API-HEAD/examples.py   Python-Arduino-Command-API(Download)
    """
    board = Arduino(baud, port=port)
    board.pinMode(13, "OUTPUT")
    while True:
        board.digitalWrite(led_pin, "LOW")