Procházet zdrojové kódy

Version 7.2.1; platformio.ini file added

platenspeler před 5 roky
rodič
revize
8f8dc311c7
5 změnil soubory, kde provedl 142 přidání a 34 odebrání
  1. 5 0
      .gitignore
  2. 67 0
      .travis.yml
  3. 32 32
      .vscode/c_cpp_properties.json
  4. 2 2
      .vscode/launch.json
  5. 36 0
      platformio.ini

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch

+ 67 - 0
.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

+ 32 - 32
.vscode/c_cpp_properties.json

@@ -6,28 +6,28 @@
         {
             "name": "Win32",
             "includePath": [
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/include",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/src",
+                "d:/sourceTree/ESP-1ch-Gateway/include",
+                "d:/sourceTree/ESP-1ch-Gateway/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/TinyGPSPlus-1.0.2b/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/DNSServer/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/Time",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP32WebServer/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/esp32-http-update/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/ESP32WebServer/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/Streaming/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/Time",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/esp32-http-update/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/HTTPClient/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src",
-                "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPIFFS/src",
-                "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/FS/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ArduinoJson/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/Streaming/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP8266_Oled_Driver_for_SSD1306_display",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/ArduinoJson/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/ESP8266_Oled_Driver_for_SSD1306_display",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/gBase64",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/aes",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/LoRaCode",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/gBase64",
+                "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPIFFS/src",
+                "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/FS/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/aes",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/LoRaCode",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/Update/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/ESPmDNS/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/TinyGPSPlus-1.0.2b/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_trace",
@@ -87,8 +87,8 @@
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fb_gfx",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/cores/esp32",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/variants/heltec_wifi_lora_32",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src",
-                "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/WiFiEsp/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src",
+                "d:/sourceTree/ESP-1ch-Gateway/lib/WiFiEsp/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/AsyncUDP/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/AzureIoT/src",
                 "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/BLE/src",
@@ -110,28 +110,28 @@
             "browse": {
                 "limitSymbolsToIncludedHeaders": true,
                 "path": [
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/include",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/include",
+                    "d:/sourceTree/ESP-1ch-Gateway/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/TinyGPSPlus-1.0.2b/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/DNSServer/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/Time",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP32WebServer/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/esp32-http-update/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/ESP32WebServer/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/Streaming/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/Time",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/esp32-http-update/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/HTTPClient/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src",
-                    "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPIFFS/src",
-                    "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/FS/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ArduinoJson/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/Streaming/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP8266_Oled_Driver_for_SSD1306_display",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/ArduinoJson/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/ESP8266_Oled_Driver_for_SSD1306_display",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/gBase64",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/aes",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/LoRaCode",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/gBase64",
+                    "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/SPIFFS/src",
+                    "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/FS/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/aes",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/LoRaCode",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/Update/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/ESPmDNS/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/TinyGPSPlus-1.0.2b/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_trace",
@@ -191,8 +191,8 @@
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fb_gfx",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/cores/esp32",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/variants/heltec_wifi_lora_32",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src",
-                    "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/lib/WiFiEsp/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src",
+                    "d:/sourceTree/ESP-1ch-Gateway/lib/WiFiEsp/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/AsyncUDP/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/AzureIoT/src",
                     "C:/Users/maarten/.platformio/packages/framework-arduinoespressif32/libraries/BLE/src",

+ 2 - 2
.vscode/launch.json

@@ -12,7 +12,7 @@
             "type": "platformio-debug",
             "request": "launch",
             "name": "PIO Debug",
-            "executable": "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/.pio/build/Gateway_59/firmware.elf",
+            "executable": "d:/sourceTree/ESP-1ch-Gateway/.pio/build/Gateway_59/firmware.elf",
             "toolchainBinDir": "C:/Users/maarten/.platformio/packages/toolchain-xtensa32/bin",
             "preLaunchTask": {
                 "type": "PlatformIO",
@@ -24,7 +24,7 @@
             "type": "platformio-debug",
             "request": "launch",
             "name": "PIO Debug (skip Pre-Debug)",
-            "executable": "c:/Users/maarten/Documents/PlatformIO/Projects/ESP-1ch-Gateway E/.pio/build/Gateway_59/firmware.elf",
+            "executable": "d:/sourceTree/ESP-1ch-Gateway/.pio/build/Gateway_59/firmware.elf",
             "toolchainBinDir": "C:/Users/maarten/.platformio/packages/toolchain-xtensa32/bin",
             "internalConsoleOptions": "openOnSessionStart"
         }

+ 36 - 0
platformio.ini

@@ -0,0 +1,36 @@
+; 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:Gateway_59]
+platform = espressif32
+board = heltec_wifi_lora_32
+framework = arduino
+upload_protocol = espota
+board_build.flash_mode = qio
+upload_speed = 115200
+upload_port = 192.168.2.59
+
+[env:Gateway_69]
+platform = espressif32
+board = heltec_wifi_lora_32
+framework = arduino
+upload_protocol = espota
+board_build.flash_mode = qio
+upload_speed = 115200
+upload_port = 192.168.2.69
+
+[env:Gateway_174]
+platform = espressif32
+board = heltec_wifi_lora_32
+framework = arduino
+upload_protocol = espota
+board_build.flash_mode = qio
+upload_speed = 115200
+upload_port = 192.168.2.174