-
Notifications
You must be signed in to change notification settings - Fork 17
/
platformio.ini
123 lines (111 loc) · 2.5 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
116
117
118
119
120
121
122
123
[platformio]
description = Firmware for ESP32 based boards to interface with PeaceFair PZEM PowerMeters
src_dir = espem
default_envs = espem
extra_configs =
user_*.ini
[common]
board_build.filesystem = littlefs
framework = arduino
build_flags =
-DFZ_WITH_ASYNCSRV
-DNO_GLOBAL_UPDATE
; -DCOUNTRY="ru"
build_src_flags =
!python flags.py
-std=gnu++17
src_build_unflags =
-std=gnu++11
lib_deps =
https://github.com/vortigont/EmbUI.git#v3.1
lib_ignore =
ESPAsyncTCP
monitor_speed = 115200
; debug flags
[debug]
espem_serial =
-DESPEM_DEBUG=Serial
app_serial =
${debug.espem_serial}
-DEMBUI_DEBUG
-DEMBUI_DEBUG_PORT=Serial
all_serial =
${debug.app_serial}
-DDEBUG_ESP_PORT=Serial
core_serial =
-DCORE_DEBUG_LEVEL=3
-DLOG_LOCAL_LEVEL=ESP_LOG_INFO
espem_serial1 =
-DESPEM_DEBUG=Serial1
app_serial1 =
${debug.espem_serial1}
-DEMBUI_DEBUG
-DEMBUI_DEBUG_PORT=Serial1
all_serial1 =
${debug.espem_serial1}
-DDEBUG_ESP_PORT=Serial1
[esp32_base]
extends = common
platform = espressif32 @ 6.9.0
board = wemos_d1_mini32
;upload_speed = 460800
monitor_filters = esp32_exception_decoder
;build_flags =
lib_ignore =
ESPAsyncTCP
LITTLEFS
LittleFS_esp32
; ===== Build ENVs ======
[env]
extends = common
;build_flags =
; -DCOUNTRY="ru" // Country double-letter code, used for NTP pool selection
; -DNO_GLOBAL_SERIAL
; -DNO_GLOBAL_SERIAL1
; ESP32 with PZEM EDL
[env:espem]
extends = esp32_base
lib_deps =
${esp32_base.lib_deps}
vortigont/pzem-edl @ ~1.2
; https://github.com/vortigont/pzem-edl
;build_flags =
; ${esp32_base.build_flags}
; -DCOUNTRY="ru"
;build_src_flags =
; ${common.build_src_flags}
;src_build_unflags =
; ${common.src_build_unflags}
; ESP32 with PZEM EDL, debug enabled
[env:espem_debug]
extends = esp32_base
lib_deps =
${esp32_base.lib_deps}
https://github.com/vortigont/pzem-edl
; vortigont/pzem-edl @ ~1.0.0
build_flags =
${esp32_base.build_flags}
${debug.app_serial}
-DCOUNTRY="ru"
; build pzem emulator
[env:espem_dummy]
extends = esp32_base
lib_deps =
${esp32_base.lib_deps}
https://github.com/vortigont/pzem-edl
build_flags =
${esp32_base.build_flags}
-DESPEM_DUMMY
; Over-the-air compressed update
; copy this template into user_ota.ini file and replace URL with your device adddress
;[espem_ota]
;extra_scripts = post_flashz.py
;upload_protocol = custom
;upload_port = http://espem/update
;upload_flags = compress
;[env:espem_s3]
;extends = esp32_base
;board = lolin_s3
;lib_deps =
; ${esp32_base.lib_deps}
; https://github.com/vortigont/pzem-edl