Jackr
Posts: 26
Joined: Sat Dec 08, 2018 10:48 pm

wiringpi vs pigpio vs bcm2835 lib

Sat Dec 08, 2018 10:56 pm

Whats the best c++ library for rpi today ? wiringpi, pigpio, pigpiod or bcm2835 ? by the point of view of efficency and speed, in this order. I will need at least one serial. I havent found a good answer googling.

Also, I need to make a visual software, can I use qt and one of those libraries ?

Thanks.

User avatar
bensimmo
Posts: 4173
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: wiringpi vs pigpio vs bcm2835 lib

Sun Dec 09, 2018 11:03 am

pigpio/pigpiod will be quick to code with as there are plenty of example (efficient) and I believe it should be quick to type it up (speed).

;-)
There are benchmarks for gpio readings, do a search but I'm not sure which pi they are on

WiringPi is transferable to Arduino and other paltform iirc so efficient there and may save you time, though that is unsupported.



Why not try them for your project, most are interchangeable.

Jackr
Posts: 26
Joined: Sat Dec 08, 2018 10:48 pm

Re: wiringpi vs pigpio vs bcm2835 lib

Sun Dec 09, 2018 11:06 pm

I need efficency first (cpu usage, power/battery consumption).

Return to “C/C++”