-
Notifications
You must be signed in to change notification settings - Fork 7
/
platformio.ini
91 lines (76 loc) · 1.9 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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; default_envs = esp32dev_DEBUG
; src_dir = ./.pio_compile
[common]
version = "3.1.4"
name = "EspManager"
examples_folder = examples/ESPManager
build_flags =
-D VER=\"${common.version}\"
-D EM_UDP_DEBUG
[env]
monitor_speed = 115200
monitor_port = COM3
upload_speed = 115200
upload_port = COM3
framework = arduino
lib_compat_mode = strict
extra_scripts =
pre:scripts/addMainToSrc.py
pre:scripts/pre_debug_script.py
lib_ldf_mode = chain+
; lib_extra_dirs =
; E:/IOT/Projects/PlatformIO/SettingsManager
lib_deps =
ArduinoJson@^6.10.1
SketchLogger@^1.0.0
; MQTT
617
; Settings Manager
6752@^2.1.0
## ESP-01 ######################################
[env:esp01_1m]
board = esp01_1m
platform = espressif8266
board_build.flash_mode = dout
build_flags =
${common.build_flags}
-Wl,-Teagle.flash.1m64.ld
## Node MCU ######################################
[env:nodemcuv]
board = nodemcu
platform = espressif8266
board_build.flash_mode = qio
build_flags =
${common.build_flags}
-Wl,-Teagle.flash.4m1m.ld
[env:nodemcuv_DEBUG]
board = nodemcu
platform = espressif8266
board_build.flash_mode = qio
build_flags =
-D DEBUGGER
${common.build_flags}
-Wl,-Teagle.flash.4m1m.ld
## ESP32 #######################################
[env:esp32dev]
platform = espressif32
board = esp32dev
board_build.flash_mode = qio
[env:esp32dev_DEBUG]
board = esp32dev
platform = espressif32
board_build.flash_mode = qio
upload_protocol = esp-prog
debug_tool = esp-prog
debug_init_break = tbreak setup
debug_load_mode = modified