This method gets the input value of a GPIO.
The input parameter GPIOnumber is a Python integer which is the number of the GPIO.
The return value is a Python integer which is -1 if an error occurred otherwise it is the input value. It can be either 0 or 1.
Example:
b = GPIO.getIOvalue(5)
gets the GPIO 5 input value, assigning the return value to b.
|
|
Note: For versions up to 12.00.xx5 this method returns -1 if the GPIOnumber is not set to input. |