mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 17:59:53 +03:00
added platformio
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,7 +3,6 @@
|
|||||||
.gcc-flags.json
|
.gcc-flags.json
|
||||||
.vscode
|
.vscode
|
||||||
.env
|
.env
|
||||||
platformio.ini
|
|
||||||
lib/readme.txt
|
lib/readme.txt
|
||||||
.travis.yml
|
.travis.yml
|
||||||
*.py
|
*.py
|
||||||
|
|||||||
47
platformio.ini
Normal file
47
platformio.ini
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
[platformio]
|
||||||
|
; change this for your ESP8266 device
|
||||||
|
; env_default = nodemcuv2
|
||||||
|
env_default = d1_mini
|
||||||
|
|
||||||
|
[common]
|
||||||
|
platform = espressif8266
|
||||||
|
flash_mode = dout
|
||||||
|
build_flags = -g -w
|
||||||
|
;build_flags = -g -w -DBUILD_TIME=$UNIX_TIME
|
||||||
|
|
||||||
|
wifi_settings =
|
||||||
|
; hard code if you prefer. Recommendation is to set from within the app when in Serial or AP mode
|
||||||
|
;wifi_settings = '-DWIFI_SSID="XXXX"' '-DWIFI_PASSWORD="XXXX"'
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
CRC32
|
||||||
|
CircularBuffer
|
||||||
|
JustWifi
|
||||||
|
AsyncMqttClient
|
||||||
|
ArduinoJson
|
||||||
|
OneWire
|
||||||
|
|
||||||
|
[env:nodemcuv2]
|
||||||
|
board = nodemcuv2
|
||||||
|
platform = ${common.platform}
|
||||||
|
framework = arduino
|
||||||
|
lib_deps = ${common.lib_deps}
|
||||||
|
build_flags = ${common.build_flags} ${common.wifi_settings}
|
||||||
|
board_build.flash_mode = ${common.flash_mode}
|
||||||
|
upload_speed = 921600
|
||||||
|
monitor_speed = 115200
|
||||||
|
upload_port = ems-esp.local
|
||||||
|
;upload_port = 10.10.10.6
|
||||||
|
|
||||||
|
[env:d1_mini]
|
||||||
|
board = d1_mini
|
||||||
|
platform = ${common.platform}
|
||||||
|
framework = arduino
|
||||||
|
lib_deps = ${common.lib_deps}
|
||||||
|
build_flags = ${common.build_flags} ${common.wifi_settings}
|
||||||
|
board_build.flash_mode = ${common.flash_mode}
|
||||||
|
upload_speed = 921600
|
||||||
|
monitor_speed = 115200
|
||||||
|
upload_port = COM3
|
||||||
|
;upload_port = 10.10.10.6
|
||||||
|
|
||||||
Reference in New Issue
Block a user