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

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

src/p/i/pifacecad-HEAD/examples/radio.py   pifacecad(Download)
 
    # wait for button presses
    switchlistener = pifacecad.SwitchEventListener(chip=cad)
    for pstation in range(4):
        switchlistener.register(

src/p/i/pifacecad-HEAD/examples/weather.py   pifacecad(Download)
 
    # wait for button presses
    switchlistener = pifacecad.SwitchEventListener(chip=cad)
    switchlistener.register(4, pifacecad.IODIR_ON, end_barrier.wait)
    switchlistener.register(5, pifacecad.IODIR_ON, weatherdisplay.update)

src/p/i/pifacecad-HEAD/examples/tweets.py   pifacecad(Download)
 
    # wait for button presses
    switchlistener = pifacecad.SwitchEventListener(chip=cad)
    switchlistener.register(4, pifacecad.IODIR_ON, end_barrier.wait)
    switchlistener.register(5, pifacecad.IODIR_ON, twitterticker.update)

src/p/i/pifacecad-HEAD/examples/traintimes.py   pifacecad(Download)
    # wait for button presses
    global switchlistener
    switchlistener = pifacecad.SwitchEventListener(chip=cad)
    switchlistener.register(4, pifacecad.IODIR_ON, end_barrier.wait)
    switchlistener.register(

src/p/i/pifacecad-HEAD/pifacecad/tools/question.py   pifacecad(Download)
 
        # wait for user input
        listener = pifacecad.SwitchEventListener(self.cad)
        listener.register(7, pifacecad.IODIR_ON, self.next_answer)
        listener.register(6, pifacecad.IODIR_ON, self.previous_answer)

src/p/i/pifacecad-HEAD/pifacecad/tools/scanf.py   pifacecad(Download)
 
        # wait for user input
        listener = pifacecad.SwitchEventListener(self.cad)
        listener.register(7, pifacecad.IODIR_ON, self.right_event)
        listener.register(6, pifacecad.IODIR_ON, self.left_event)

src/p/i/pifacecad-HEAD/tests/test_switches.py   pifacecad(Download)
pifacecad.init()
 
sl = pifacecad.SwitchEventListener()
for i in range(8):
    sl.register(i, pifacecad.IODIR_ON, input_callback)

src/p/i/pifacecad-HEAD/tests/test_irandswitches.py   pifacecad(Download)
pifacecad.init()
 
sl = pifacecad.SwitchEventListener()
sl.register(0, pifacecad.IODIR_ON, input0)
sl.register(1, pifacecad.IODIR_ON, input1)

src/p/i/pifacecad-HEAD/tests/tests.py   pifacecad(Download)
    def setUp(self):
        self.barrier = threading.Barrier(2, timeout=5)
        self.test_passed = False
        self.direction = pifacecad.IODIR_ON
        self.listener = pifacecad.SwitchEventListener()