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

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

src/p/i/piface-python-websocket-server-HEAD/server.py   piface-python-websocket-server(Download)
# import piface.pfio as pfio
import pifacedigitalio as pfio
pfio.init()
pifacedigital = pfio.PiFaceDigital()
 

src/p/i/pifacedigitalio-HEAD/tests.testrig.py   pifacedigitalio(Download)
    def setUp(self):
        pifacedigitalio.init()  # for digital write
 
    def test_leds(self):
        global pifacedigitals
    def setUp(self):
        pifacedigitalio.init()  # for digital read
 
    def test_switches(self):
        global pifacedigitals
    def setUp(self):
        pifacedigitalio.init()
 
    def test_big_digital_read_write(self):
        pin = 0

src/p/i/pifacedigitalio-HEAD/tests.py   pifacedigitalio(Download)
    def setUp(self):
        self.old_read_bit = pifacecommon.core.read_bit
        pifacedigitalio.init()
        # function is supposed to return 1, testing with 0
        pifacecommon.core.read_bit = lambda pin, port, board: 0
    def setUp(self):
        pifacedigitalio.init()
 
    def test_leds(self):
        global pifacedigitals
    def setUp(self):
        pifacedigitalio.init()
 
    def test_switches(self):
        global pifacedigitals
    def setUp(self):
        pifacedigitalio.init()
        self.direction = pifacedigitalio.IODIR_ON
        self.barriers = dict()
        self.board_switch_pressed = list()