-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
69 lines (54 loc) · 1.93 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
; 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]
src_dir = src
default_envs = d1mini
; You MUST inject these options into [env:] section
; using ${common_env_data.***} (see below)
[common_env_data]
platform = espressif8266
framework = arduino
board_flash_mode = dout
build_src_flags = -std=c++17
-I${platformio.src_dir}/chtml
-I${platformio.src_dir}/esp-libs/include
lib_deps =
PubSubClient
ArduinoJson
EEPROM
extra_scripts =
pre:esp-scripts/pio/html-to-c.py
pre:esp-scripts/pio/gen-http-credentials.py
post:pio/strip-floats.py
; *** Serial Monitor options
monitor_speed = 115200
; *** Upload Serial reset method for Wemos and NodeMCU
upload_port = ttyUSB0
;upload_resetmethod = nodemcu
; *** Upload file to OTA server using SCP
;upload_port = user@host:/path
;extra_scripts = pio/sftp-uploader.py
; *** Upload file to OTA server using HTTP
;upload_port = domus1:80/api/upload-arduino.php
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[env:d1mini]
platform = ${common_env_data.platform}
framework = ${common_env_data.framework}
board_build.flash_mode = ${common_env_data.board_flash_mode}
build_src_flags = ${common_env_data.build_src_flags}
-DBOARD_TYPE_D1MINI
lib_deps = ${common_env_data.lib_deps}
extra_scripts = ${common_env_data.extra_scripts}
monitor_speed = ${common_env_data.monitor_speed}
;upload_speed = 460800
upload_speed = 1000000
board = d1_mini
board_build.ldscript = eagle.flash.4m1m.ld