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

Can't use your library on Raspberry Pi B+ #9

Open
jgoad opened this issue Nov 6, 2014 · 3 comments
Open

Can't use your library on Raspberry Pi B+ #9

jgoad opened this issue Nov 6, 2014 · 3 comments

Comments

@jgoad
Copy link

jgoad commented Nov 6, 2014

Hey I can't actually compile the BB-nRF24-SPI0-00A0.dts on the B+ but that is part of your set up process... I must be misunderstanding something here.

@jgoad jgoad changed the title Can use your library on Raspberry Pi B+ Can't use your library on Raspberry Pi B+ Nov 6, 2014
@jpbarraca
Copy link
Owner

That file is specific to the BeagleBoneBlack and enables the SPI bus. If you already have the SPI bus working, no other compilation is required.

Please check this: http://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md

@arthurxie
Copy link

This library works well on Raspberry Pi B+ board. But you MUST enable the spidev and install python-spidev library:

$ sudo apt-get install raspi-config
$ sudo raspi-config
#####Follow these steps:
##### 8 Advanced Options -> A6 SPI -> ...
##### At last, reboot your board

BTW, the Raspberry Pi B+ board call the CSN pin as SPI_CE0 and SPI_CE1. So the pin mapping SHOULD be like this:
MISO -> GPIO 9
MOSI -> GPIO 10
SCLK -> GPIO 11
CSN -> GPIO 8 or GPIO 7
CE -> GPIO 12(or any other pin)
IRQ -> GPIO 13(or any other pin)

@jpbarraca
Copy link
Owner

Thanks for the update!

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