forked from emsesp/EMS-ESP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini-example
75 lines (63 loc) · 1.45 KB
/
platformio.ini-example
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
;
; PlatformIO Project Configuration File for EMS-ESP
;
[platformio]
default_envs = release
;default_envs = debug
[common]
; -DMYESP_TIMESTAMP -DTESTS -DCRASH -DFORCE_SERIAL -DNO_GLOBAL_EEPROM -DLOGICANALYZER
general_flags =
[env]
board = d1_mini
framework = arduino
platform = espressif8266
lib_deps =
CRC32
CircularBuffer
OneWire
JustWifi
AsyncMqttClient
ArduinoJson
EEPROM_rotate
ESP Async WebServer
ESPAsyncTCP
ESPAsyncUDP
upload_speed = 921600
monitor_speed = 115200
; example ports for OSX
;upload_port = /dev/cu.wchusbserial14403
;upload_port = /dev/cu.usbserial-1440
; uncomment next 2 lines for OTA
;upload_protocol = espota
;upload_port = ems-esp.local
[env:buildweb]
extra_scripts = pre:scripts/buildweb.py
[env:test]
build_type = debug
build_flags = ${common.general_flags} -DTESTS
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:crash]
build_type = debug
build_flags = ${common.general_flags} -DNO_GLOBAL_EEPROM -DCRASH
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:debug]
build_type = debug
build_flags = ${common.general_flags}
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:clean]
extra_scripts = pre:scripts/clean_fw.py
[env:release]
build_flags = ${common.general_flags}
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
[env:checkcode]
build_type = debug
build_flags = ${common.general_flags} -Wall
extra_scripts = scripts/checkcode.py