From 2cc2140f94c983d9a958e721ef7a26d8dd1e7345 Mon Sep 17 00:00:00 2001 From: Nicolas Graziano Date: Wed, 8 Nov 2023 16:20:42 +0100 Subject: [PATCH] Add build of ABP example Fixes #37 --- .github/workflows/build-examples.yml | 2 ++ .../esp32-deepsleep-abp/platformio-ci.ini | 21 +++++++++++++++++++ examples/simple/.vscode/extensions.json | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 examples/esp32-deepsleep-abp/platformio-ci.ini diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml index a7daac6..154c83f 100644 --- a/.github/workflows/build-examples.yml +++ b/.github/workflows/build-examples.yml @@ -29,5 +29,7 @@ jobs: run: platformio ci --lib="." --board=ATmega328P --project-option="lib_deps=https://github.com/ngraziano/avr_stl.git" examples/simple_sx1262 - name: Build esp32 exemple run: platformio ci --lib="." examples/esp32 --project-conf examples/esp32/platformio-ci.ini + - name: Build esp32 abp + run: platformio ci --lib="." examples/esp32-deepsleep-abp --project-conf examples/esp32-deepsleep-abp/platformio-ci.ini # - name: Build rak811 exemple # run: platformio ci --lib="." examples/rak811_gps --project-conf examples/rak811_gps/platformio-ci.ini diff --git a/examples/esp32-deepsleep-abp/platformio-ci.ini b/examples/esp32-deepsleep-abp/platformio-ci.ini new file mode 100644 index 0000000..31ee850 --- /dev/null +++ b/examples/esp32-deepsleep-abp/platformio-ci.ini @@ -0,0 +1,21 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; http://docs.platformio.org/page/projectconf.html + +[env:esp32] +platform = espressif32 +board = heltec_wifi_lora_32 +framework = arduino +upload_port = COM9 + +monitor_port = COM9 +monitor_speed = 19200 + +build_flags = -std=gnu++17 -Wall -Wextra -O3 -DENABLE_SAVE_RESTORE +build_unflags = -std=gnu++11 diff --git a/examples/simple/.vscode/extensions.json b/examples/simple/.vscode/extensions.json index e80666b..080e70d 100644 --- a/examples/simple/.vscode/extensions.json +++ b/examples/simple/.vscode/extensions.json @@ -3,5 +3,8 @@ // for the documentation about the extensions.json format "recommendations": [ "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" ] }