Page 1 of 1

How Invert a GPIO port state ?

Posted: Wed Mar 06, 2019 5:46 pm
by filzek
Hi,

In an output gpio that was set to a high state, how can I read later if it is High or Low?

Reading the code of gpio_get_level do not work on output, so, how we can now if a gpio output is in high or low state?

Re: How Invert a GPIO port state ?

Posted: Thu Mar 07, 2019 4:31 pm
by brp80000
make the port status flag in your program