jpbarraca / pynrf24

Python port of the RF24 library for NRF24L01+ radios.
GNU General Public License v2.0
152 stars 84 forks source link

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

Open jgoad opened 9 years ago

jgoad commented 9 years ago

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.

jpbarraca commented 9 years ago

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 commented 8 years ago

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 commented 8 years ago

Thanks for the update!