Fixed platform.io config
This commit is contained in:
5
firmware/.gitignore
vendored
Normal file
5
firmware/.gitignore
vendored
Normal 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
7
firmware/.vscode/extensions.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
@@ -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 = +<*> -<native_main.cpp>
|
||||
|
||||
[env:native]
|
||||
platform = native
|
||||
test_ignore = test_embedded
|
||||
build_flags = -g
|
||||
build_flags = -g -DPLATFORM_NATIVE
|
||||
src_filter = +<*> -<firmware_main.cpp>
|
||||
5
firmware/src/native_main.cpp
Normal file
5
firmware/src/native_main.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user