I read my notes and I found out that I had that problem.
You need to set the SPI clock to 8Mhz!
insert the spi clock speed at line 374 in lib_nrf24.py
After that your python code should work!
Code: Select all
def begin(self, csn_pin, ce_pin=0): # csn & ce are RF24 terminology. csn = SPI's CE! # Initialize SPI bus.. # ce_pin is for the rx=listen or tx=trigger pin on RF24 (they call that ce !!!) # CE optional (at least in some circumstances, eg fixed PTX PRX roles, no powerdown) # CE seems to hold itself as (sufficiently) HIGH, but tie HIGH is safer! self.spidev.open(0, csn_pin) self.spidev.max_speed_hz=8000000 self.ce_pin = ce_pin