-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplatformio.ini
135 lines (117 loc) · 4.27 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
124
125
126
127
128
129
130
131
132
133
134
135
[platformio]
data_dir = ./data
default_envs = esp32
extra_configs =
user_*.ini
ci_envs.ini
; подключаем дополнительные конфиги platformio в виде user_*.ini файлов
; если вам нужен свой env для сборки, оформляйте его в виде дополнительных user_*.ini файлов,
; они не будут обновляться при синхронизации репозитория
; подробнее
; https://docs.platformio.org/en/latest/projectconf/section_platformio.html#extra-configs
; build flags for esp32
[flags]
build_src_flags =
build_unflags =
build_flags =
-DNETWORK_EVENTS_MUTEX
-DCONFIG_ASYNC_TCP_STACK_SIZE=8192
-DFZ_WITH_ASYNCSRV -DFZ_NOHTTPCLIENT -DNO_GLOBAL_UPDATE
-DLEDFB_WITH_HUB75_I2S -DNO_GFX -DNO_CIE1931
-DESP32_ARDUINO_NO_RGB_BUILTIN
-DEMBUI_IDPREFIX='"FireLamp"'
;!python git_rev_macro.py
; https://docs.platformio.org/en/latest/core/userguide/lib/cmd_install.html#description
[libs]
common =
mrfaptastic/ESP32 HUB75 LED MATRIX PANEL DMA Display @ ~3.0
madhephaestus/ESP32Encoder @ ~0.11
olikraus/U8g2 @ ^2.34.17
;https://github.com/toblum/TetrisAnimation
;https://github.com/moononournation/Arduino_GFX#v1.4.7
vortigont =
https://github.com/vortigont/EmbUI
;vortigont/EmbUI @ ~4.2
https://github.com/vortigont/LedFB
https://github.com/vortigont/TM1637
vortigont/ESPAsyncButton @ ~1.2
https://github.com/vortigont/DFMiniMp3#notpls
https://github.com/vortigont/CronoS
[env]
framework = arduino
; 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 2025.01.30 Tasmota Arduino Core 3.1.1.250109 based on IDF 5.3.2.250106
; platform = https://github.com/tasmota/platform-espressif32/releases/download/2025.01.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_packages =
; platformio/framework-arduinoespressif32 @https://github.com/tasmota/arduino-esp32/releases/download/3.0.4.240826/framework-arduinoespressif32.zip
; platformio/framework-arduinoespressif32-libs
board_build.filesystem = littlefs
[esp32_base]
lib_ignore =
; ESP Async WebServer
; Async TCP
lib_deps =
${libs.common}
${libs.vortigont}
build_src_flags =
${flags.build_src_flags}
build_unflags =
${flags.build_unflags}
build_flags =
${flags.build_flags}
-DEMBUI_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; ESP32 generic
[env:esp32]
extends = esp32_base
board = wemos_d1_mini32
board_build.partitions = extra/esp32_4MiB.csv
; ESP32 with debug
[env:esp32debug]
extends = env:esp32
build_flags =
${flags.build_flags}
-DEMBUI_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
; Arduino Core Logging level: 1 = error, 2 = warning, 3 = info, 4 = debug, 5 = verbose
-DCORE_DEBUG_LEVEL=2
;-D CONFIG_ARDUHAL_LOG_COLORS=1
build_src_flags =
${flags.build_src_flags}
; LAMP_DEBUG_LEVEL severity level: 1 = error, 2 = warning, 3 = info, 4 = debug, 5 = verbose
-DLAMP_DEBUG_LEVEL=4
;-DLAMP_DEBUG_PORT=Serial3
[env:esp32S3]
extends = env:esp32
; set your board
board = lolin_s3
board_build.partitions = extra/esp32_4MiB.csv
; uncomment and set to your flash size if board has 8 or 16 MiB
;board_build.partitions = extra/default_16MB.csv
; uncomment the following lines to switch logging to "Serial" port instead of 'USB' port
;build_unflags =
; ${flags.build_unflags}
; -DARDUINO_USB_CDC_ON_BOOT=1
; profile for Huidu HD-WF2 ESP32-S3 board
; more info here https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/issues/433
[env:hdwf2]
extends = esp32_base
board = huidu_hd
board_build.partitions = extra/default_8MB.csv
;build_flags =
; ${flags.build_flags}
; -DARDUINO_USB_CDC_ON_BOOT=1
;[env:esp32s2]
;extends = env:esp32
;board = ttgo-t8-esp32-s2
;; OTA Upload example
;[env:ota]
;extends = env:esp32
;upload_protocol = custom
;; replace url with address of your esp32 device
;upload_port = http://firelamp/update
;extra_scripts =
; post:extra/post_flashz.py