-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatformio.ini
115 lines (101 loc) · 3.18 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
115
[common]
platform = espressif8266
;platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
;platform = espressif8266@1.5.0
framework = arduino
upload_speed = 115200
monitor_speed = 115200
lib_deps =
# Using a library name
https://github.com/me-no-dev/ESPAsyncWebServer.git
AsyncMqttClient
ArduinoJson
NtpClientLib
EEPROM_Rotate
# 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
build_flags =
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-DDEBUG_UI_PORT=Serial
; -DDEBUG_ESP_WIFI
; -DDEBUG_ESP_PORT=Serial
; -DDEBUG_EEPROM_ROTATE_PORT=Serial
; -DNO_GLOBAL_EEPROM
; -DDEBUG_EEPROM
; -DDEBUG_WEB
; -DDEBUG_WEB_JSON
-DDEBUG_NETWORK
-DDEBUG_SCHEDULE
-DDEBUG_MQTT
; -DDEBUG_MQTT_JSON
; LD Scripts
; https://github.com/esp8266/Arduino/tree/master/tools/sdk/ld
[env:3ch-esp07]
platform = ${common.platform}
framework = ${common.framework}
board = esp01_1m
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=3 -Wl,-Teagle.flash.1m.ld
lib_deps = ${common.lib_deps}
[env:3ch-esp07-ota]
platform = ${common.platform}
framework = ${common.framework}
board = esp01_1m
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=3 -Wl,-Teagle.flash.1m.ld
lib_deps = ${common.lib_deps}
upload_port = 192.168.2.46
;upload_flags = --auth=""
upload_protocol = espota
upload_speed = 115200
monitor_speed = 115200
[env:5ch-esp07]
platform = ${common.platform}
framework = ${common.framework}
board = esp01_1m
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=5 -Wl,-Teagle.flash.1m.ld
lib_deps = ${common.lib_deps}
[env:5ch-esp07-1st-stage-ota]
platform = ${common.platform}
framework = ${common.framework}
board = esp01_1m
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=5 -DOTA_ONLY -Wl,-Teagle.flash.1m.ld
lib_deps = ${common.lib_deps}
upload_port = 192.168.2.46
;upload_flags = --auth=""
upload_protocol = espota
upload_speed = 115200
monitor_speed = 115200
[env:5ch-esp07-2nd-stage-ota]
platform = ${common.platform}
framework = ${common.framework}
board = esp01_1m
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=5 -Wl,-Teagle.flash.1m.ld
lib_deps = ${common.lib_deps}
upload_port = 192.168.2.46
;upload_flags = --auth=""
upload_protocol = espota
upload_speed = 115200
monitor_speed = 115200
[env:5ch-esp12e]
platform = ${common.platform}
framework = ${common.framework}
board = esp12e
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=5
lib_deps = ${common.lib_deps}
upload_speed = 115200
monitor_speed = 115200
[env:5ch-esp12e-ota]
platform = ${common.platform}
framework = ${common.framework}
board = esp12e
build_flags = ${common.build_flags} -DMAX_LED_CHANNELS=5
lib_deps = ${common.lib_deps}
upload_port = 192.168.2.25
;upload_flags = --auth=""
upload_protocol = espota
upload_speed = 115200
monitor_speed = 115200
# Serial 3Ch program: pio run -t upload -e 5ch-esp12e --upload-port /dev/tty.SLAB_USBtoUART
# Serial 5Ch program: pio run -t upload -e 5ch-esp12e --upload-port /dev/tty.SLAB_USBtoUART
# OTA Program example: pio run -t upload -e 3ch-esp07-ota