thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.02k stars 421 forks source link

Change GPIO driver from wiringPi to pigpio #226

Closed Eduardo-bat closed 4 months ago

Eduardo-bat commented 4 months ago

Changed install and driver files to use pigpio instead of wiringPi on the current Raspberry Pi hardware layer.

LeSpocky commented 4 months ago

Changed install and driver files to use pigpio instead of wiringPi on the current Raspberry Pi hardware layer.

Neither the pull request nor the commit message answers the question: Why? :thinking:

jancumps commented 4 months ago

Neither the pull request nor the commit message answers the question: Why? 🤔

There's no supported fork of wiringPi anymore.

thiagoralves commented 4 months ago

WiringPi is dead since 2019: https://web.archive.org/web/20210126203355/http://wiringpi.com/wiringpi-deprecated/ The community tried to keep it alive but it is a dead-end job. Time to move on. Pigpio is the officially recommended library from Raspberry Pi to deal with GPIO pins in C.

LeSpocky commented 4 months ago

Okay get it. Thanks for the explanation. 🙂

However: Why not standard libgpiod from the Linux kernel project like everybody else in the embedded world uses? Does Raspberry Pi have special needs which libgpiod can not cover? 🤔

thiagoralves commented 4 months ago

Ease of use, speed, PWM, etc...