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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Return the current GPIO function (IN, OUT, ALT0)
gpio - gpio channel

src/a/d/Adafruit_BBIO-0.0.19/test/test_gpio_output.py   Adafruit_BBIO(Download)
    def test_direction_readback(self):
        GPIO.setup("P8_10", GPIO.OUT)
        direction = GPIO.gpio_function("P8_10")
        assert direction == GPIO.OUT
    def test_output_greater_than_one(self):

src/a/d/Adafruit_BBIO-0.0.19/test/test_gpio_input.py   Adafruit_BBIO(Download)
    def test_direction_readback(self):
        GPIO.setup("P8_10", GPIO.IN)
        direction = GPIO.gpio_function("P8_10")
        assert direction == GPIO.IN