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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/PyMata-HEAD/examples/pymata_basics.py   PyMata(Download)
 
# Turn on the RED LED
firmata.digital_write(RED_LED, 1)
 
# Wait 3 seconds and turn it off
time.sleep(3)
firmata.digital_write(RED_LED, 0)

src/p/y/PyMata-HEAD/examples/pymata_ping_config_and_read.py   PyMata(Download)
    for i in range(46,54):
        time.sleep(.1)
        firmata.digital_write(i, 1)
        print firmata.get_sonar_data()
 
    for i in range(46,54):
        time.sleep(.1)
        firmata.digital_write(i, 0)