Updated Porting to non Arduino Platforms (markdown)

master
Jan Gromeš 2023-05-06 19:46:22 +02:00
rodzic 10e9d31c5c
commit 67dbea0366
1 zmienionych plików z 4 dodań i 2 usunięć

@ -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