forked from emsesp/EMS-ESP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
114 lines (100 loc) · 3.35 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
;
; PlatformIO Project Configuration File for EMS-ESP
;
[platformio]
default_envs = release
;default_envs = debug
[common]
; custom build options are:
; -DMYESP_TIMESTAMP
; -DTESTS
; -DCRASH
; -DFORCE_SERIAL
; -DMYESP_DEBUG
;custom_flags = -DFORCE_SERIAL -DMYESP_DEBUG
custom_flags =
# Available lwIP variants (macros):
# -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY = v2 Lower Memory
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH = v2 Higher Bandwidth
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_LOW_MEMORY
# Other flags
# -DVTABLES_IN_FLASH
# -DNO_GLOBAL_EEPROM
# -DBEARSSL_SSL_BASIC
general_flags = -DNO_GLOBAL_EEPROM
# From https://github.com/esp8266/Arduino/blob/master/tools/sdk/ld
# eagle.flash.4m1m.ld = 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer
# eagle.flash.4m2m.ld = same as above but with 2024 KB SPIFFS
# eagle.flash.4m.ld = same as above but with no SPIFFS storage
build_flags_4m1m = -Wl,-Teagle.flash.4m1m.ld
build_flags = ${common.general_flags} ${common.build_flags_4m1m}
[env]
framework = arduino
;platform = [email protected] ; arduino core 2.5.2
platform = espressif8266
;platform = https://github.com/platformio/platform-espressif8266#develop
;platform = https://github.com/platformio/platform-espressif8266#feature/stage
lib_deps =
https://github.com/rlogiacco/CircularBuffer
https://github.com/PaulStoffregen/OneWire
https://github.com/me-no-dev/ESPAsyncWebServer
https://github.com/me-no-dev/ESPAsyncUDP
uuid-common@^1.1.0
uuid-log@^2.1.1
uuid-syslog@^2.0.4 ; https://github.com/nomis/mcu-uuid-syslog
[email protected] ; https://github.com/xoseperez/justwifi
[email protected] ; https://github.com/marvinroger/async-mqtt-client
[email protected] ; https://github.com/xoseperez/eeprom_rotate
[email protected] ; https://github.com/bblanchon/ArduinoJson
[email protected] ; https://github.com/me-no-dev/ESPAsyncTCP
upload_speed = 921600
monitor_speed = 115200
; example ports for OSX
;upload_port = /dev/cu.wchusbserial14403
;upload_port = /dev/cu.usbserial-1440
; comment out this section if using USB and not OTA for firmware uploads
upload_protocol = espota
upload_port = ems-esp.local
#
# These following targets are used by TravisCI to build the firmware versions on Release
# Do not modify
#
[env:travis]
board = esp12e
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:esp12e]
board = esp12e
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:d1_mini]
board = d1_mini
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:nodemcuv2]
board = nodemcuv2
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:nodemcu]
board = nodemcu
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
#
# These two targets below (release and debug) can be modified
#
[env:debug]
board = d1_mini
build_type = debug
build_flags = ${common.build_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/pre_script.py
scripts/main_script.py
[env:release]
board = d1_mini
build_type = release
build_flags = ${common.build_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/pre_script.py
scripts/main_script.py