From 8fd16594d818042ae27d80a8f787aaa2fe376f94 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 5 Apr 2020 18:21:24 +0200 Subject: [PATCH] moved to platformio --- .gitignore | 2 + .travis.yml | 67 +++++++++++++++++++ platformio.ini | 23 +++++++ .../LoRa_APRS_iGate.cpp | 0 {LoRa_APRS_iGate => src}/display.cpp | 0 {LoRa_APRS_iGate => src}/display.h | 0 {LoRa_APRS_iGate => src}/settings.h | 0 7 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 platformio.ini rename LoRa_APRS_iGate/LoRa_APRS_iGate.ino => src/LoRa_APRS_iGate.cpp (100%) rename {LoRa_APRS_iGate => src}/display.cpp (100%) rename {LoRa_APRS_iGate => src}/display.h (100%) rename {LoRa_APRS_iGate => src}/settings.h (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9f3806 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.pio +.vscode diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7c486f1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,67 @@ +# Continuous Integration (CI) is the practice, in software +# engineering, of merging all developer working copies with a shared mainline +# several times a day < https://docs.platformio.org/page/ci/index.html > +# +# Documentation: +# +# * Travis CI Embedded Builds with PlatformIO +# < https://docs.travis-ci.com/user/integration/platformio/ > +# +# * PlatformIO integration with Travis CI +# < https://docs.platformio.org/page/ci/travis.html > +# +# * User Guide for `platformio ci` command +# < https://docs.platformio.org/page/userguide/cmd_ci.html > +# +# +# Please choose one of the following templates (proposed below) and uncomment +# it (remove "# " before each line) or use own configuration according to the +# Travis CI documentation (see above). +# + + +# +# Template #1: General project. Test it using existing `platformio.ini`. +# + +# language: python +# python: +# - "2.7" +# +# sudo: false +# cache: +# directories: +# - "~/.platformio" +# +# install: +# - pip install -U platformio +# - platformio update +# +# script: +# - platformio run + + +# +# Template #2: The project is intended to be used as a library with examples. +# + +# language: python +# python: +# - "2.7" +# +# sudo: false +# cache: +# directories: +# - "~/.platformio" +# +# env: +# - PLATFORMIO_CI_SRC=path/to/test/file.c +# - PLATFORMIO_CI_SRC=examples/file.ino +# - PLATFORMIO_CI_SRC=path/to/test/directory +# +# install: +# - pip install -U platformio +# - platformio update +# +# script: +# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..d30e441 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,23 @@ +; 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 +; https://docs.platformio.org/page/projectconf.html + +[env:heltec_wifi_lora_32_V2] +platform = espressif32 +board = heltec_wifi_lora_32_V2 +framework = arduino +lib_ldf_mode = deep+ +monitor_speed = 115200 +lib_deps = + Adafruit GFX Library + Adafruit SSD1306 + LoRa + APRS-Decoder-Lib + NTPClient + APRS-IS-Lib diff --git a/LoRa_APRS_iGate/LoRa_APRS_iGate.ino b/src/LoRa_APRS_iGate.cpp similarity index 100% rename from LoRa_APRS_iGate/LoRa_APRS_iGate.ino rename to src/LoRa_APRS_iGate.cpp diff --git a/LoRa_APRS_iGate/display.cpp b/src/display.cpp similarity index 100% rename from LoRa_APRS_iGate/display.cpp rename to src/display.cpp diff --git a/LoRa_APRS_iGate/display.h b/src/display.h similarity index 100% rename from LoRa_APRS_iGate/display.h rename to src/display.h diff --git a/LoRa_APRS_iGate/settings.h b/src/settings.h similarity index 100% rename from LoRa_APRS_iGate/settings.h rename to src/settings.h