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,
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,
You may try reading OUT register of GPIO, but I don't think this is the best way to do this. It would be better to keep the state as variabl accessed by some "library", or global one.
You may try reading OUT register of GPIO, but I don't think this is the best way to do this. It would be better to keep the state as variabl accessed by some "library", or global one.