pinout-xyz / rpipins

MIT License
13 stars 2 forks source link

Debian packaging. #5

Open Gadgetoid opened 2 months ago

Gadgetoid commented 2 months ago

I've tagged a testing release, so you can:

wget https://github.com/pinout-xyz/rpipins/releases/download/1.0.0-testing/rpipins_1.0.0_all.deb
sudo apt install python3-markdown-it python3-mdurl python3-rich
sudo dpkg -i rpipins_1.0.0_all.deb
rpipins

And it should work. Shout if it goes awry.

@lurch now to see about getting this into the official repo... 😆

Gadgetoid commented 2 months ago

Thank you @scruss for the sudo apt install python3-markdown-it python3-mdurl python3-rich bit of the test install instructions!

lurch commented 2 months ago

@lurch now to see about getting this into the official repo... 😆

blinks Uh, hello?

https://github.com/pinout-xyz/rpipins apparently lists me as a contributor, but I honestly don't remember ever seeing this repo before :rofl: :joy: :rofl:

I had a look at the screenshot in the README, and it looks slightly odd that the "columns" (i.e. the ones where you've got ip or pu or --) on the left of the pins are in a different order to the "columns" on the right of the pins? Has this been tested to work equally-well on Pi Zero, Pi 4 and Pi 5?

Gadgetoid commented 2 months ago

lists me as a contributor

I think I started with a fork of https://github.com/pinout-xyz/picopins so you've probably got a commit in here somewhere!

I think spiritually you're a contributor to the whole pinout-xyz org anyway, haha.

Has this been tested to work equally-well on Pi Zero, Pi 4 and Pi 5?

Fair point!

Anything but Pi 5 is dead to me now 😆 there's no platform detection, so any variations of pins/functions (not sure we cover any here) would not be handled.

I'm not sure pinctrl is available/works on older Pi's? I should probably check.

It does fail gracefully in the absence of pinctrl, though.

lurch commented 2 months ago

I think spiritually you're a contributor to the whole pinout-xyz org anyway, haha.

...for my sins :joy:

Raspberry Pi officially still supports all models of Raspberry Pi, so until this package does the same, I suspect that it's unlikely that we'd include it in the official repos. You might want to have a look at the code in GpioZero to see how that does model-detection?