kopia lustrzana https://github.com/jgromes/RadioLib
Updated Porting to non Arduino Platforms (markdown)
rodzic
10e9d31c5c
commit
67dbea0366
|
@ -13,8 +13,10 @@ $ sudo make install
|
|||
```
|
||||
|
||||
2. **Include RadioLib in your project**
|
||||
In the appropriate file in your project, include the library header: `#include <RadioLib.h>`
|
||||
NOTE: If you installed RadioLib as a shared library in hte previous step, you will have to include it like this: `#include <RadioLib/RadioLib.h>`
|
||||
In the appropriate file in your project, include the library header:
|
||||
`#include <RadioLib.h>`
|
||||
NOTE: If you installed RadioLib as a shared library in the previous step, you will have to include it like this:
|
||||
`#include <RadioLib/RadioLib.h>`
|
||||
|
||||
3. **Provide your hardware abstraction layer to RadioLib**
|
||||
To run on different platforms (e.g., esp-idf for ESP32, stm32hal for STM32, pigpio for Raspberry Pi etc.), RadioLib includes a light abstraction layer class. It's up to the user to add implementation of this abstraction layer - usually this boils down to providing functions that perform GPIO operations, SPI transactions etc. An example for Raspberry Pi using the [pigpio library](https://abyz.me.uk/rpi/pigpio/cif.html) can be found here: https://github.com/jgromes/RadioLib/blob/master/examples/NonArduino/Raspberry/PiHal.h
|
||||
|
|
Ładowanie…
Reference in New Issue