How Invert a GPIO port state ?

filzek
Posts: 5
Joined: Tue Jul 10, 2018 8:27 pm

How Invert a GPIO port state ?

Postby filzek » Wed Mar 06, 2019 5:46 pm

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?

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

Re: How Invert a GPIO port state ?

Postby brp80000 » Thu Mar 07, 2019 4:31 pm

make the port status flag in your program

Who is online

Users browsing this forum: No registered users and 64 guests