afarhan / sbitx

165 stars 55 forks source link

Wiringpi #22

Open RichNeese opened 1 year ago

RichNeese commented 1 year ago

Please learn to use gpiod and stop using wiring pi . People may want to use this on other boards then a raspi and wiringpi breaks on other systems

RichNeese commented 1 year ago

as it stands with the cost of the pi right now other boards that work as well if not better are available . An being able to use boards that function and less cost right now is a must.

microenh commented 1 year ago

I just tried to install wiringpi following the instructions in install.txt. wget is failing with a 404 error.

(wget https://project-downloads.drogon.net/wiringpi-latest.deb)

afarhan commented 1 year ago

yes, we must move away from wiringPi, it is only being used to manipulate the gpio lines and delay() functions. Should we just roll our own into a harware.c or arch.c file?

rafael2k commented 1 year ago

Just as a side note, I'm maintaining the WiringPi code (with support for armhf and arm64) as long as sbitx uses it. Here is the code: https://github.com/Rhizomatica/WiringPi

RichNeese, as an open source project, you are also free to learn libgpio and make a PR. : )

afarhan commented 1 year ago

I am just hacking away for now. We will have to refactor the great wasteland of sbitx_gtk.c and gather all the gpio calls into portable wrappers.

On Thu, May 4, 2023, 2:57 PM Rafael Diniz @.***> wrote:

Just as a side note, I'm maintaining the WiringPi code (with support for armhf and arm64) as long as sbitx uses it. Here is the code: https://github.com/Rhizomatica/WiringPi

RichNeese, as an open source project, you are also free to learn libgpio and make a PR. : )

— Reply to this email directly, view it on GitHub https://github.com/afarhan/sbitx/issues/22#issuecomment-1534392108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFYXODRCXZERVKYY7NCDWDXENZBRANCNFSM6AAAAAASGCBU6A . You are receiving this because you commented.Message ID: @.***>

rafael2k commented 7 months ago

I re-wrote all the GPIO code using gpiolib here: https://github.com/Rhizomatica/sbitx-core/tree/gpiolib

i2c is also done using libi2c and kernel-mode i2c bit-banging.

rafael2k commented 1 month ago

WiringPi is now maintained again. No point of moving away from it.