From 437d576352155a08450e52c6fe28a274bd18101f Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 9 Mar 2021 22:26:17 +0100 Subject: [PATCH] Add platformio configuration. --- src/lorasoundkit/platformio.ini | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/lorasoundkit/platformio.ini diff --git a/src/lorasoundkit/platformio.ini b/src/lorasoundkit/platformio.ini new file mode 100644 index 0000000..070b04f --- /dev/null +++ b/src/lorasoundkit/platformio.ini @@ -0,0 +1,38 @@ +; 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 + +[platformio] +src_dir = . +default_envs = ttgo + +[env] +platform = espressif32 +framework = arduino +monitor_speed = 115200 +upload_speed = 921600 +build_flags = + -D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS + -D CFG_eu868=1 + -D CFG_sx1276_radio=1 +lib_deps = + mcci-catena/MCCI LoRaWAN LMIC library + adafruit/Adafruit SSD1306 + adafruit/Adafruit GFX Library + adafruit/Adafruit BusIO + +[env:ttgo] +board = ttgo-lora32-v1 +build_flags = ${env.build_flags} -D ARDUINO_TTGO_LoRa32_V1 + +[env:sparkfun] +board = sparkfun_lora_gateway_1-channel +build_flags = ${env.build_flags} -D ARDUINO_ESP32_DEV + +