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

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

src/p/i/piface-HEAD/python/demos/racingpi/game.py   piface(Download)
class ButtonSwitch(pfio.InputItem):
    def __init__(self, button_number):
        # button switches are connected directly to pins
        pfio.InputItem.__init__(self, button_number, True) # input