Page 1 of 1

wiringpi vs pigpio vs bcm2835 lib

Posted: Sat Dec 08, 2018 10:56 pm
by Jackr
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.

Re: wiringpi vs pigpio vs bcm2835 lib

Posted: Sun Dec 09, 2018 11:03 am
by bensimmo
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.

Re: wiringpi vs pigpio vs bcm2835 lib

Posted: Sun Dec 09, 2018 11:06 pm
by Jackr
I need efficency first (cpu usage, power/battery consumption).