linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to gets gpio status but does not change it
@ 2023-12-15  7:49 18711529674
  2023-12-15 10:14 ` [libgpiod] " Kent Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: 18711529674 @ 2023-12-15  7:49 UTC (permalink / raw)
  To: linux-gpio@vger.kernel.org

Hello.

    According to the example get_line_value. I try to request the status of the gpio, but the return is always low.
    try 
      gpiod_line_settings_set_direction(settings, GPIOD_LINE_DIRECTION_AS_IS);
  or
      gpiod_line_settings_set_direction(settings, GPIOD_LINE_DIRECTION_INPUT);
  Their result is always low

  Is there any way to get the correct value without changing the original state?

                                           Thank you in advance for your time.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-15 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15  7:49 How to gets gpio status but does not change it 18711529674
2023-12-15 10:14 ` [libgpiod] " Kent Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).