Update README with non-deprecated library include method
This commit is contained in:
parent
182ff5f4ea
commit
be0cb2bb34
11
README.md
11
README.md
@ -42,15 +42,16 @@ Add this repository as a submodule:
|
|||||||
git submodule add https://github.com/open-x4-epaper/community-sdk.git open-x4-sdk
|
git submodule add https://github.com/open-x4-epaper/community-sdk.git open-x4-sdk
|
||||||
```
|
```
|
||||||
|
|
||||||
Then include add the lib categories you need into your `platformio.ini` file:
|
Then add each lib you need into your `platformio.ini` file as `lib_deps`:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
lib_extra_dirs =
|
lib_deps =
|
||||||
open-x4-sdk/libs/display
|
BatteryMonitor=symlink://open-x4-sdk/libs/hardware/BatteryMonitor
|
||||||
open-x4-sdk/libs/hardware
|
EpdScreenController=symlink://open-x4-sdk/libs/display/EpdScreenController
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can include the libraries in your project as needed:
|
Then you can include the libraries in your project as usual:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <BatteryMonitor.h>
|
#include <BatteryMonitor.h>
|
||||||
#include <EpdScreenController.h>
|
#include <EpdScreenController.h>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user