Fixed platform.io config

This commit is contained in:
Martin Bauer 2020-06-05 21:57:35 +02:00
parent 9bf3287944
commit adf5e0a7c3
5 changed files with 51 additions and 5 deletions

5
firmware/.gitignore vendored Normal file
View File

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

7
firmware/.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

View File

@ -8,20 +8,28 @@
; Please visit documentation for the other options and examples ; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env:d1] [platformio]
platform = espressif8266 data_dir = data
board = esp_wroom_02
[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 framework = arduino
monitor_port = /dev/ttyUSB0 monitor_port = /dev/ttyUSB0
upload_port = /dev/ttyUSB0 upload_port = /dev/ttyUSB0
monitor_speed = 115200 monitor_speed = 115200
build_flags = -Wl,-Teagle.flash.2m1m.ld
lib_deps = lib_deps =
https://github.com/mabau/ESPAsyncWebServer.git https://github.com/mabau/ESPAsyncWebServer.git
AsyncTCP AsyncTCP
NTPClient NTPClient
src_filter = +<*> -<native_main.cpp>
[env:native] [env:native]
platform = native platform = native
test_ignore = test_embedded test_ignore = test_embedded
build_flags = -g build_flags = -g -DPLATFORM_NATIVE
src_filter = +<*> -<firmware_main.cpp>

View File

@ -0,0 +1,5 @@
int main() {
return 0;
}

View File

@ -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