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

Support for Raspberry Pi 3 #25

Open
winternet-studio opened this issue Dec 6, 2016 · 5 comments
Open

Support for Raspberry Pi 3 #25

winternet-studio opened this issue Dec 6, 2016 · 5 comments

Comments

@winternet-studio
Copy link

For my Raspberry Pi 3 it doesn't detect the right version number in Pi->getVersion(). It returns 0 instead of 4. Therefore I can't use certain pins without it complaining. I would have made a pull request if I could but I don't know how to convert the revision numbers (http://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/)

@winternet-studio winternet-studio changed the title Support for Raspberry Pi 3 Model B Support for Raspberry Pi 3 Dec 6, 2016
@calcinai
Copy link

calcinai commented Dec 6, 2016

Hey, I've just tested a couple of things on my Pi and seems to be ok. Can you attach the contents of your /proc/cpuinfo?

@winternet-studio
Copy link
Author

Of course...

processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2709
Revision        : a22082
Serial          : 0000000028d29c51

@winternet-studio
Copy link
Author

winternet-studio commented Dec 6, 2016

The Pi 3 by the way also has quite an extra number of GPIO pins: 5, 6, 12, 13, 16, 19, 20, 21, 26 (source: http://raspi.tv/wp-content/uploads/2014/07/Raspberry-Pi-GPIO-pinouts-1024x703.png - even though it says B+ it is the same for version B2 and B3)

@calcinai
Copy link

calcinai commented Dec 6, 2016

Bad news for you is, I've tested with that cpu info file and I get 10625154 from ->getVersion(). Meaningless, but it should be working for you.

I'm not the maintainer of this library - I was just going to make the PR for you.

If you get desperate, you could try this library in the meantime.

@ronanguilloux
Copy link
Owner

Sorry, not time left nor budget to try this so far,
Please feel free to share a PR here

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