sbitx icon indicating copy to clipboard operation
sbitx copied to clipboard

Wiringpi

Open RichNeese opened this issue 2 years ago • 7 comments

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 avatar Nov 20 '22 22:11 RichNeese

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.

RichNeese avatar Nov 20 '22 22:11 RichNeese

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)

microenh avatar Apr 11 '23 18:04 microenh

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?

afarhan avatar Apr 29 '23 17:04 afarhan

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. : )

rafael2k avatar May 04 '23 09:05 rafael2k

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.

  • f

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: @.***>

afarhan avatar May 04 '23 12:05 afarhan

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 avatar Jan 24 '24 13:01 rafael2k

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

rafael2k avatar Jul 30 '24 20:07 rafael2k