-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathplatformio.ini
108 lines (96 loc) · 2.44 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
[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 -DFZ_NOHTTPCLIENT -DNO_GLOBAL_UPDATE
-DEMBUI_IDPREFIX='"EspEM"'
;build_src_flags =
; !python flags.py
; -std=gnu++17
;src_build_unflags =
; -std=gnu++11
lib_deps =
vortigont/pzem-edl @ ~1.2
vortigont/embui @ ~4.2.1
lib_ignore =
ESPAsyncTCP
monitor_speed = 115200
; debug flags
[debug]
espem_serial =
-DESPEM_DEBUG=Serial
-DESPEM_DEBUG_LEVEL=4
app_serial =
${debug.espem_serial}
-DEMBUI_DEBUG_LEVEL=3
-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_LEVEL=3
-DEMBUI_DEBUG_PORT=Serial1
all_serial1 =
${debug.espem_serial1}
-DDEBUG_ESP_PORT=Serial1
[esp32_base]
extends = common
; Tasmota's platform, 2025.02.30 Tasmota Arduino Core 3.1.1.250203 based on IDF 5.3.2.250120
platform = https://github.com/tasmota/platform-espressif32/releases/download/2025.02.30/platform-espressif32.zip
; Tasmota's platform, based on Arduino Core v3.0.4
;platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.08.11/platform-espressif32.zip
;platform = espressif32 @ 6.9.0
board = wemos_d1_mini32
monitor_filters = esp32_exception_decoder
;build_flags =
; ===== Build ENVs ======
[env]
extends = common
; ESP32 with PZEM EDL
[env:espem]
extends = esp32_base
;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
build_flags =
${esp32_base.build_flags}
${debug.app_serial}
-DCOUNTRY="ru"
; build pzem emulator
[env:espem_dummy]
extends = esp32_base
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