Questions tagged [libgpiod]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

GPIO event monitoring fails on Zero 2

On my (first) Raspberry Pi Zero 2, gpiod_ctxless_event_monitor (from libgpiod) fails, while identical calls succeed on my other Pi 3 and 4. Is this a limitation of the Zero or does this indicate that ...
0
votes
1answer
138 views

How fast are C & Python libraries

I ran some code to monitor Pi hysteresis which involved mirroring a GPIO input to output. I was surprised as how slow the code was, so wrote a C version. Although this was slightly better it was still ...
0
votes
1answer
328 views

Why is gpioinfo not showing me pin names?

I'm running the same image on 2 different Pis: 2020-08-20-raspios-buster-armhf-lite.img. Kernel 5.4.51-v7+. One Pi is Pi3, and the other is Pi4. On both, I installed gpiod, and ran: $ sudo gpioinfo ...
0
votes
1answer
580 views

How to read any connected DS18B20 temperature sensors with C/C++

I'm new to the Raspberry Pi ecosystem so pardon me if I'm talking nonsense. I want to read the temperature data from the connected DS18B20 sensors using C/C++. I followed this schema to connect them: ...
0
votes
1answer
416 views

How to control a Servo via libgpiod on a raspberry PI

I am trying to control a Servo in c ++ using the libgpiod library. My problem is in defining the 50Hz pwm pulse on the pin that the servo is connected to. The servo signal cable is connected to pin 33 ...
1
vote
1answer
2k views

High Impedance state for GPIO

I've not used GPIO on RPi much. On other hardware, the GPIO pins can be configured in software to be in a "High Impedance" state (Hi-Z). I have assumed that it's possible to place most of ...
2
votes
0answers
171 views

Schedule for Raspi OS upgrades to 5.5 kernel & libgpiod 1.5

Several months ago, this blog post appeared in a search. In summary, this post outlines the new char device-based GPIO interfaces. It further states that a full complement of features will be ...
0
votes
3answers
214 views

libpgiod vs wiringPI code/configuration

I have an RPI, setup with wiringPi and some code I wrote to read a quadrature encoder. It works just fine, I can read the pins, using a wiringPiISR mechanism (the ISRs get executed on the rising as ...
0
votes
1answer
223 views

libpgiod vs wiringPI ports/pins etc

since sysfs is deprecated, and wiringPi can't really be used anymore, I started with libgpiod. I found some examples I am trying to play with. But nothing yet. (I am trying to get an libpgiod version ...