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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/o/s/OSPi-HEAD/gpio_pins.py   OSPi(Download)
def disableShiftRegisterOutput():
    """Disable output from shift register."""
    try:
        GPIO.output(pin_sr_noe, GPIO.HIGH)
    except NameError:
            GPIO.output(pin_sr_clk, GPIO.LOW)
            if srvals[gv.sd['nst']-1-s]:
                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)
        # Switch the i-th row found from scan to output
        GPIO.setup(self.ROW[rowVal], GPIO.OUT)
        GPIO.output(self.ROW[rowVal], GPIO.HIGH)
 
        # Scan columns for still-pushed key/button

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)
 
while True:
    GPIO.output("P9_16", GPIO.HIGH)
    sleep(1)
    GPIO.output("P9_16", GPIO.LOW)

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

src/p/i/pingo-HEAD/experiments/beagle/python/anima.py   pingo(Download)
while True:
    for pino in pinos:
        GPIO.output("P9_" + str(pino), GPIO.HIGH)
        tempo = ADC.read('P9_39')
        print tempo

src/p/i/pingo-HEAD/experiments/beagle/anima.py   pingo(Download)
while True:
    for pino in pinos:
        GPIO.output("P9_" + str(pino), GPIO.HIGH)
        tempo = ADC.read('P9_39')
        print tempo

src/s/m/smokematic-0.1.0/smokematic/baster.py   smokematic(Download)
            self._baste_off_handle = None
 
        GPIO.output(self._baster_pin, GPIO.HIGH)
        self._baste_off_handle = ioloop.add_timeout(
            datetime.timedelta(seconds=self._duration),

src/a/d/Adafruit_BBIO-0.0.19/test/test_gpio_output.py   Adafruit_BBIO(Download)
    def test_output_high(self):
        GPIO.setup("P8_10", GPIO.OUT)
        GPIO.output("P8_10", GPIO.HIGH)
        value = open('/sys/class/gpio/gpio68/value').read()
        assert int(value)