This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Read GPIO Output State

Hi,

What is the best way to read the state of an output pin? I have an LED connected to a pin and want to know in a different part of the program whether the LED is currently on or off.

Thanks,

Related