From adf5e0a7c39aa40ba5e6bec9ccfe9aedf4d09cf4 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Fri, 5 Jun 2020 21:57:35 +0200 Subject: [PATCH] Fixed platform.io config --- firmware/.gitignore | 5 +++++ firmware/.vscode/extensions.json | 7 +++++++ firmware/platformio.ini | 18 +++++++++++++----- firmware/src/native_main.cpp | 5 +++++ hardware/hardware_connections.txt | 21 +++++++++++++++++++++ 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 firmware/.gitignore create mode 100644 firmware/.vscode/extensions.json create mode 100644 firmware/src/native_main.cpp create mode 100644 hardware/hardware_connections.txt diff --git a/firmware/.gitignore b/firmware/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/firmware/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/firmware/.vscode/extensions.json b/firmware/.vscode/extensions.json new file mode 100644 index 0000000..e80666b --- /dev/null +++ b/firmware/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ] +} diff --git a/firmware/platformio.ini b/firmware/platformio.ini index 19d239e..b452b4a 100644 --- a/firmware/platformio.ini +++ b/firmware/platformio.ini @@ -8,20 +8,28 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:d1] -platform = espressif8266 -board = esp_wroom_02 +[platformio] +data_dir = data + +[env:esp32] +platform = espressif32 +board = esp-wrover-kit +#platform = espressif8266 +#board = esp_wroom_02 +#build_flags = -Wl,-Teagle.flash.2m1m.ld +build_flags = -DPLATFORM_ESP32 framework = arduino monitor_port = /dev/ttyUSB0 upload_port = /dev/ttyUSB0 monitor_speed = 115200 -build_flags = -Wl,-Teagle.flash.2m1m.ld lib_deps = https://github.com/mabau/ESPAsyncWebServer.git AsyncTCP NTPClient +src_filter = +<*> - [env:native] platform = native test_ignore = test_embedded -build_flags = -g \ No newline at end of file +build_flags = -g -DPLATFORM_NATIVE +src_filter = +<*> - \ No newline at end of file diff --git a/firmware/src/native_main.cpp b/firmware/src/native_main.cpp new file mode 100644 index 0000000..328a890 --- /dev/null +++ b/firmware/src/native_main.cpp @@ -0,0 +1,5 @@ + + +int main() { + return 0; +} \ No newline at end of file diff --git a/hardware/hardware_connections.txt b/hardware/hardware_connections.txt new file mode 100644 index 0000000..0c091d7 --- /dev/null +++ b/hardware/hardware_connections.txt @@ -0,0 +1,21 @@ +Load Cell +--------- +Rot E+ +Schwarz E- +Grün (oder Gelb) A- +Weiss A+ + + +Connector: +---------- +1 Rot +2 Weiss +3 gruen +4 schwarz + + + +Löcher Platine (Abstand) +--------------- +Breite 3.8 +Länge 2.8