From be0cb2bb34eae837d6cb36d04a81cb20399366d0 Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Wed, 3 Dec 2025 08:16:39 +1100 Subject: [PATCH] Update README with non-deprecated library include method --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eaa985d..41013a3 100644 --- a/README.md +++ b/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 ``` -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 -lib_extra_dirs = - open-x4-sdk/libs/display - open-x4-sdk/libs/hardware +lib_deps = + BatteryMonitor=symlink://open-x4-sdk/libs/hardware/BatteryMonitor + 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 #include #include