pynrf24 | Python port of the RF24 library for NRF24L01 radios
kandi X-RAY | pynrf24 Summary
kandi X-RAY | pynrf24 Summary
Pure python port of the RF24 (library for NRF24L01+ radios through SPI. All API methods were ported and prototypes were kept very similar. This should facilitate the reuse of code from the STM32 or Arduino platforms. The focus of this libary is to provide an API similar to the RF24 driver. Therefore, many things are not so pythonic, especially function names. The actually implementation is improved from the original RF24 code base and has many bug fixes solved, as well as improved performance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize a SPI device
- Resets all registers
- Sets the PAAL setting
- Convert bytes to 8 bits
- Write a register value
- Print the details of the network
- Returns the data rate of the NRF
- Gets the CRC length
- Gets the PALEvel value
- Return True if this NIC is available
- Wait for the pin to finish
- Write the packet to the given buffer
- Writes the payload to the given buffer
- Stop listening for events
- Start writing to the stream
- Read the data from the buffer
- Start a fast write
- Writes data to the stream
- Set autock flag
- This function is called when the network changes
- Set auto ACK pipe
- Start listening for events
- Enable ack payload
- Set the PA
- Enable dynamic payload
- Open a reading pipe
- Set address width
pynrf24 Key Features
pynrf24 Examples and Code Snippets
Community Discussions
Trending Discussions on pynrf24
QUESTION
I've tried to use this library to write test function for NRF24L01 on Raspberry Pi 3 :https://github.com/jpbarraca/pynrf24
I need from that code to switch between listing and writing mode during runtime. Unfortunately because of the library I've got errors .
Can anyone tell me how to fix them? Or at least give me some other library that would work properly?
SPI on Raspberry is enebled as it was in issues (https://github.com/jpbarraca/pynrf24/issues/38) : I've also tried set begin(0,0... but that resulted with:
Traceback (most recent call last): File "TestNRF.py", line 8, in
...
ANSWER
Answered 2019-Jun-12 at 18:21For future dummies like me (cause I don't think there's any bigger idiot) Raspberry Pi 3 B+ has only SPI0 which means that that line :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pynrf24
You can use pynrf24 like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page