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

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

src/p/i/piface-HEAD/python/demos/toggle.py   piface(Download)
 
# Make arrays of LEDs...
led    = [ piface.pfio.LED(i)    for i in range(1, 5) ]
# ...Switches...
switch = [ piface.pfio.Switch(i) for i in range(1, 5) ]

src/p/i/piface-HEAD/python/demos/flash.py   piface(Download)
piface.pfio.init()
 
led1 = piface.pfio.LED(1)
 
while True: