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

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

src/o/s/OSPi-HEAD/gpio_pins.py   OSPi(Download)
def enableShiftRegisterOutput():
    """Enable output from shift register."""
    try:
        GPIO.output(pin_sr_noe, GPIO.LOW)
    except NameError:
def setShiftRegister(srvals):
    """Set the state of each output pin on the shift register from the srvals list."""
    try:
        GPIO.output(pin_sr_clk, GPIO.LOW)
        GPIO.output(pin_sr_lat, GPIO.LOW)
        for s in range(gv.sd['nst']):
            GPIO.output(pin_sr_clk, GPIO.LOW)
                GPIO.output(pin_sr_dat, GPIO.HIGH)
            else:
                GPIO.output(pin_sr_dat, GPIO.LOW)
            GPIO.output(pin_sr_clk, GPIO.HIGH)
        GPIO.output(pin_sr_lat, GPIO.HIGH)

src/m/a/matrix_keypad-1.2.2/matrix_keypad/BBb_GPIO.py   matrix_keypad(Download)
        for j in range(len(self.COLUMN)):
            GPIO.setup(self.COLUMN[j], GPIO.OUT)
            GPIO.output(self.COLUMN[j], GPIO.LOW)
 
        # Set all rows as input

src/p/y/pynrf24-HEAD/nrf24.py   pynrf24(Download)
    def ce(self, level):
        if level == NRF24.HIGH:
            GPIO.output(self.ce_pin, GPIO.HIGH)
        else:
            GPIO.output(self.ce_pin, GPIO.LOW)

src/p/i/pingo-HEAD/experiments/beagle/python/blink.py   pingo(Download)
    GPIO.output("P9_16", GPIO.HIGH)
    sleep(1)
    GPIO.output("P9_16", GPIO.LOW)
    sleep(1)
 

src/p/i/pingo-HEAD/experiments/beagle/python/blink_pot.py   pingo(Download)
    GPIO.output("P9_16", GPIO.HIGH)
    sleep(1)
    GPIO.output("P9_16", GPIO.LOW)
    #sleep(1)
 

src/p/i/pingo-HEAD/experiments/beagle/python/anima.py   pingo(Download)
        print tempo
        sleep(tempo)
        GPIO.output("P9_" + str(pino), GPIO.LOW)
 
 

src/p/i/pingo-HEAD/experiments/beagle/anima.py   pingo(Download)
        print tempo
        sleep(tempo)
        GPIO.output("P9_" + str(pino), GPIO.LOW)
 

src/s/m/smokematic-0.1.0/smokematic/baster.py   smokematic(Download)
 
        GPIO.setup(self._baster_pin, GPIO.OUT)
        GPIO.output(self._baster_pin, GPIO.LOW)
 
    def config(self, frequency, duration):
    def _baste_off(self):
        """
        Turns off the basting
        """
        GPIO.output(self._baster_pin, GPIO.LOW)

src/a/d/Adafruit_BBIO-0.0.19/test/test_gpio_output.py   Adafruit_BBIO(Download)
    def test_output_low(self):
        GPIO.setup("P8_10", GPIO.OUT)
        GPIO.output("P8_10", GPIO.LOW)
        value = open('/sys/class/gpio/gpio68/value').read()
        assert not int(value)
    def test_output_of_pin_not_setup(self):
        with pytest.raises(RuntimeError):
            GPIO.output("P8_11", GPIO.LOW)
            GPIO.cleanup() 
 
    def test_output_setup_as_input(self):
        GPIO.setup("P8_10", GPIO.IN)
        with pytest.raises(RuntimeError):
            GPIO.output("P8_10", GPIO.LOW)