Is there anyway to check a GPIO's high or low state?
I know I could set it to low at the start and assign a variable based on that, but I am wondering if there is a way to ask what a GPIO's state is at any time.
I was hoping something like print(GPIO.output(11)) would tell me whether the state is true or false, but obviously that doesn't work.
Thanks!