Am 22.03.2022 um 09:36 schrieb Hans Kurscheidt:
Am 22.03.2022 um 01:59 schrieb Kent Gibson:
On Mon, Mar 21, 2022 at 07:33:28PM +0200, Andy Shevchenko wrote:
On Mon, Mar 21, 2022 at 7:27 PM Hans Kurscheidt<lve0200@xxxxxxxxx> wrote:
Hi thanks, that makes hope.
First of all, please do not top-post.
Unfortunately apt-get gpiod on my OrangePi Armbian board gives me
version 1.2, while the dev is already at 1.6. I probably have to build
it from source.
Keeping fingers crossed .
I don't remember the details of old versions of libgpiod (Bart? Kent?)
I think it was available even there.
Bias support was added in libgpiod v1.5.
It wasn't even exposed in the uAPI prior to that - it wasn't added until
kernel v5.5.
In this case building the latest stable, 1.6.3, is the way to go.
Cheers,
Kent.
Am 21.03.2022 um 17:26 schrieb Andy Shevchenko:
On Mon, Mar 21, 2022 at 1:30 PM Hans Kurscheidt<lve0200@xxxxxxxxx> wrote:
Despite deep searching, I cannot find any information, if gpiod allow
specifying pull-ups to input lines and how to do/handle it.
Have you followed this code from libgpiod?
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/tools/gpioset.c#n44
--
With Best Regards,
Andy Shevchenko
Thank-you Kent!
Still 1 more question. I understand the sense of a Pull-up in Input
mode, but reading the code, I see that the Bias option exists as well
for gpioset (Output). What is the sense of this, and what does it do?
WRT. building it, it wasn't that straight forward, as in the
description. On the Armbian/Debian buster Kernel 5.10.60-sunxi64
#21.08.1 I had to create an M4 dir, install GNU-archives and install
libtools in addition to succeed building it. Then doxygen and help2man
were still missing.
All the best and thank you again, for solving my problem!
Hans