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

RPI 5 gpio numbers #199

Open
livep2000 opened this issue Apr 13, 2024 · 2 comments
Open

RPI 5 gpio numbers #199

livep2000 opened this issue Apr 13, 2024 · 2 comments

Comments

@livep2000
Copy link

Recently I burned out my rpi4, just at the moment my highly complicated radio transceiver reached some point of functionality.
Ordered a pi5, to discover its not working. After reading and reading this issues tracker give the fairly simple solution.

Just add 571 to the gpio pin number. Proposing something like this to make it fully compatible:

let file = fs.readFileSync("/proc/cpuinfo", "utf8");
let arr = file.split(/\r?\n/);
arr.forEach((line, idx)=> {
    if(line.includes("Pi 5")){
        console.log(line);
        gpio += 571;
        }
});

Imre

@SamDecrock
Copy link

I don't think it's Pi5 related but rather the version of Raspbian. On Bullseye it works, on Bookworm it's broken.

@nwpray
Copy link

nwpray commented Jun 27, 2024

I opened a PR to lookup the base address and add that automatically to the address you pass
#204

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

3 participants