-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
69 lines (54 loc) · 2.28 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 = ESPGW-WiFi
build_dir = .pioenvs
build_cache_dir = .cache
default_envs = ESPGW-WiFi
ESPGW-WiFi_SSL
ESPGW-WiFi_RO
ESPGW-WiFi_RO_SSL
[common]
framework = arduino
board = esp01_1m
board_build.flash_mode = qio
board_build.ldscript = eagle.flash.1m64.ld
platform = espressif8266
board_build.f_cpu = 160000000L
board_build.f_flash = 80000000L
monitor_speed = 115200
upload_speed = 921600
upload_resetmethod = nodemcu
lib_deps = 617 ;MQTT@2.4.7
64 ;ArduinoJson@6.15.1
build_flags = -DVERSION=1.03
extra_scripts = pre:tools\firmware_name.py
post:tools\copy_compress.py
[env]
framework = ${common.framework}
board = ${common.board}
board_build.flash_mode = ${common.board_build.flash_mode}
board_build.ldscript = ${common.board_build.ldscript}
platform = ${common.platform}
board_build.f_cpu = ${common.board_build.f_cpu}
board_build.f_flash = ${common.board_build.f_flash}
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
[env:ESPGW-WiFi]
monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
upload_resetmethod = ${common.upload_resetmethod}
build_flags = ${common.build_flags} -DLNG=0 -DFWN=ESPGW-WiFi
[env:ESPGW-WiFi_SSL]
build_flags = ${common.build_flags} -DLNG=0 -DFWN=ESPGW-WiFi_SSL -DUSE_SSL=1
[env:ESPGW-WiFi_RO]
build_flags = ${common.build_flags} -DLNG=1 -DFWN=ESPGW-WiFi_RO
[env:ESPGW-WiFi_RO_SSL]
build_flags = ${common.build_flags} -DLNG=1 -DFWN=ESPGW-WiFi_RO_SSL -DUSE_SSL=1