Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetect Pi version and display relevant pinout #2

Open
Gadgetoid opened this issue Sep 28, 2023 · 2 comments
Open

Autodetect Pi version and display relevant pinout #2

Gadgetoid opened this issue Sep 28, 2023 · 2 comments

Comments

@Gadgetoid
Copy link
Contributor

rpipins is a crude copy of pinout.xyz and lacks any real awareness about differences in headers between Pi versions.

I don't propose we worry about the old, 24pin header, but some disambiguation between Pi 3, Pi 4 and Pi 5 if there are any major differences would be useful.

@lurch
Copy link
Contributor

lurch commented Apr 11, 2024

the old, 24pin header

26-pin header 😉 (Agreed, probably not worth bothering about)

some disambiguation between Pi 3, Pi 4 and Pi 5 if there are any major differences would be useful

IIRC the "base functionality" is the same, it's only the ALT modes (UARTs, SPIs, etc.) that differ between Pi 3 / Pi 4 / Pi 5. (and also IIRC Pi 0 / Pi 02 / Pi 1 / Pi 2 / Pi 3 all have the identical ALT-modes on the identical pins).

@lurch
Copy link
Contributor

lurch commented Apr 14, 2024

I'm (probably) not gonna put any effort into fixing this myself, but FYI pinctrl funcs 0-27 gives you the names of all the alt-modes of the different pins for different Pis, and that would let you avoid having to add hard-coded data tables into your Python source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants