Optimized high speed nRF24L01+ driver class documentation v1.4.8
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
|
By mz-fuzzy
The RF24 lib needs to be built in C++ & installed for the python wrapper to wrap it.
See Linux Installation (or installing with CMake alternatively) and Linux/RPi General
Next, install some up-to-date python packages.
Next, install some up-to-date python3 packages.
Build the library.
This step and the next step need to be executed from the appropriate directory of the cloned RF24* repository:
When in the correct directory, run the following command:
or for python3
Install the library
or for python3
See the additional Platform Support pages for information on connecting your hardware.
See the included *.py files in the "examples_linux" folder for usage information.
Running the Example
The python examples location differ for each RF24* resopitories.
Navigate to the examples_linux directory
Edit the getting_started.py example to configure the appropriate pins per the Linux/RPi General documentation.
Configure another device, Arduino or RPi with the same example code. It could be C++ or python (see the list of available examples), but we'll use the same example file on a different device in this tutorial.
Run the example
or for python3