From eb1650fed7c6f3dfd9d4ea2a680068a94344287b Mon Sep 17 00:00:00 2001 From: Ollo Date: Thu, 12 Nov 2020 21:23:19 +0100 Subject: [PATCH] Moved upload port into seperate configuration file --- esp32/.gitignore | 1 + esp32/custom_platformio.ini.example | 17 +++++++++++++++++ esp32/platformio.ini | 6 ++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 esp32/custom_platformio.ini.example diff --git a/esp32/.gitignore b/esp32/.gitignore index 97721ae..a62a7d9 100644 --- a/esp32/.gitignore +++ b/esp32/.gitignore @@ -4,3 +4,4 @@ .vscode/launch.json .vscode/ipch doc/ +custom_platformio.ini diff --git a/esp32/custom_platformio.ini.example b/esp32/custom_platformio.ini.example new file mode 100644 index 0000000..df8c67a --- /dev/null +++ b/esp32/custom_platformio.ini.example @@ -0,0 +1,17 @@ +[env:esp32doit-devkit-v1] +platform = espressif32 +board = esp32doit-devkit-v1 +framework = arduino +build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY +board_build.partitions = defaultWithSmallerSpiffs.csv + +extra_configs = custom_platformio.ini + +; the latest development brankitchen-lightch (convention V3.0.x) +lib_deps = ArduinoJson@6.16.1 + https://github.com/homieiot/homie-esp8266.git#v3.0 + OneWire + DallasTemperature + +; add additional parameter, like the upload port +upload_port=/dev/ttyUSB1 diff --git a/esp32/platformio.ini b/esp32/platformio.ini index dc5fa2b..8016989 100644 --- a/esp32/platformio.ini +++ b/esp32/platformio.ini @@ -15,10 +15,12 @@ framework = arduino build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY board_build.partitions = defaultWithSmallerSpiffs.csv -upload_port=/dev/ttyUSB0 - ; the latest development brankitchen-lightch (convention V3.0.x) lib_deps = ArduinoJson@6.16.1 https://github.com/homieiot/homie-esp8266.git#v3.0 OneWire DallasTemperature + +[platformio] + +extra_configs = custom_platformio.ini \ No newline at end of file