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

C/C++ • Re: Is there a library for GPIO on pi5 that is not difficult to read and understand?

$
0
0
If you need to do these kinds of requests often and you're bothered by the amount of code, simply wrap it in a function. You can also remove all of the unnecessary leading global scope resolution operators (::). And perhaps create a separate variable for the line settings.

Other than that, I do not think that this is difficult to read at all. It is verbose, sure, but the code tells you exactly what it's doing.

Statistics: Posted by tttapa — Sat Apr 27, 2024 10:41 am



Viewing all articles
Browse latest Browse all 6462

Latest Images

Trending Articles



Latest Images