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

C/C++ • Re: WiringPi replacement?

$
0
0
[quote=drankinatty post_id=2217802 time=1714764984 user_id=229437]
I've faced this same issue and come to the conclusion that it is just as easy to use the kernel [b]ioctl()[/b] interface for each of the various systems as it is to go searching for some new library to do it for you. The benefit, learn it once and it applies to anything running Linux, not just the Pi. A plus - no [b]root[/b] access needed. This applies for any of the systems. SPI, PWM, GPIO, etc.
[/quote]

If you have a working example for PWM I would be interested to see it as PWM seems to be conspicuously absent from ioctl.

Statistics: Posted by Milliways — Sat May 04, 2024 1:45 am



Viewing all articles
Browse latest Browse all 5674