Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4537

C/C++ • Recommend lib for gpio access RPi5?

$
0
0
There's a lot of information shared on forums on gpio usage and for me (c++ newbee) overwhelming.
Although I get get things working on my Pi5 python (with unoffical libs and a deamon) I would like to use gpio in combination with C++.

My objective is fast as possible reading the status of a gpio input.
The reason for this is that when I get this working in C++ I'll use the code and create a gnuradio OOT source block.

Can you guide me on this with the following two questions:
1. which gpio lib is working on RPi5 in combination with C++?
2. Can you refer to a simple example code (e.g. hello-world LED) for a C++ steep learning curve beginner like me?

Im using Raspberry Pi 5 ModelB1.1 with Raspberry OS 64 (Linux raspberrypi 6.6.74+rpt-rpi-2712 2025-01-27)

Thanks in advance! Your feedback might get me on track!
Rbert

Statistics: Posted by Rbert — Sat Feb 08, 2025 7:55 pm — Replies 1 — Views 37



Viewing all articles
Browse latest Browse all 4537

Trending Articles