Shows the function of a GPIO channel.
import RPi.GPIO as GPIO
func = GPIO.gpio_function(pin)
will return a value from:
GPIO.IN, GPIO.OUT, GPIO.SPI, GPIO.I2C, GPIO.HARD_PWM, GPIO.SERIAL, GPIO.UNKNOWN
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.