-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathplatformio.ini
More file actions
152 lines (135 loc) · 6 KB
/
platformio.ini
File metadata and controls
152 lines (135 loc) · 6 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
; 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]
extra_configs = platformio-override.ini
default_envs = lolin_d32_pro_sdmmc_pe
[env]
board_build.flash_mode = qio
board_build.bootloader = dio
board_build.partitions = custom_4mb_noota.csv
;platform = espressif32@^6.10.0 ; Arduino 2.0.17 (ESP-IDF 4.4.7)
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.34/platform-espressif32.zip ; Arduino 3.3.4 (ESP-IDF 5.5.1)
;framework = arduino
framework = arduino, espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;monitor_port = /dev/cu.SLAB_USBtoUART
;upload_port = /dev/cu.SLAB_USBtoUART
;upload_speed = 115200
extra_scripts =
pre:install_dependencies.py
pre:gitVersion.py
pre:updateSdkConfig.py
pre:processHtml.py
lib_deps =
https://github.com/schreibfaul1/ESP32-audioI2S.git#8fdc0317378267e2eb0600ed811ed13c6c23b90c
https://github.com/madhephaestus/ESP32Encoder.git#2c986e08961458454f64010e8d1a7d150d6d87a6
https://github.com/peterus/ESP-FTP-Server-Lib.git#554959f65c04a2ed6d3443f628e76ca7980355ec
https://github.com/FastLED/FastLED.git#20667c3a6413ed46a828f78ec95fb57e58d753f8 ; v3.10.3
https://github.com/ESP32Async/ESPAsyncWebServer.git#30a497676ca275b2f03ed9e0b5b5fbfbc148914b ; v3.9.1
https://github.com/bblanchon/ArduinoJson.git#733bc4ee82630c88c0a619a883cd3a206efae977 ; v7.4.2
https://github.com/pschatzmann/arduino-audio-tools.git#c8e8eb74495521ed9402655cbc2e2ec3ce26fbe5 ; v1.2.1
https://github.com/pschatzmann/ESP32-A2DP.git#e023cb0db783ceecf2fcea747134c3769ea9017c ; v1.8.8
https://github.com/Arduino-IRremote/Arduino-IRremote.git#610d1165edb9d8d8a47974957ebb350fdd82cfe8 ; v4.4.1
https://github.com/kkloesener/MFRC522_I2C.git#121a27ed775bfb8bf1d1d3fcbfa571d2439a0846
https://github.com/tueddy/rfid.git#caa3e6d4f9cc592e800b4467d61d64f765c3156f ; avoid warnings, fork from https://github.com/miguelbalboa/rfid.git#0ff12a1
https://github.com/tuniii/LogRingBuffer.git#89d7d3e5b74e773cae38345e23ddaf2c4fd3e367
https://github.com/tueddy/PN5180-Library.git#69ec032289457b1adae3e1b269ca22ea16aa46fd
https://github.com/SZenglein/Arduino-MAX17055_Driver.git#75cdfcfaf8a1abd368606f8130f8744a4c93ad2a
https://github.com/tueddy/natsort.git#ebbf6604c573c5315daa8fa77da8f047f202bd63 ; avoid warnings, fork from https://github.com/sourcefrog/natsort.git#cdd8df9
board_build.embed_txtfiles =
managed_components/espressif__esp_insights/server_certs/https_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_mqtt_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_claim_service_server.crt
managed_components/espressif__esp_rainmaker/server_certs/rmaker_ota_server.crt
build_flags =
-DCONFIG_ASYNC_TCP_RUNNING_CORE=0
-DCONFIG_ASYNC_TCP_USE_WDT=1
-DCORE_DEBUG_LEVEL=0 ;6
-DCONFIG_FATFS_USE_LABEL=1 ; enable sd card volume label support
-std=c++17
-std=gnu++17
-Wall
-Wextra
-Wunreachable-code
build_unflags =
-std=gnu++11
-Werror=all
[env:lolin_d32_pro]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32_pro.html
board = lolin_d32_pro
board_build.partitions = custom_16mb_ota.csv
build_flags = ${env.build_flags}
-DHAL=4
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB
[env:lolin_d32_pro_sdmmc_pe]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32_pro.html
board = lolin_d32_pro
board_build.partitions = custom_16mb_ota.csv
build_flags = ${env.build_flags}
-DHAL=7
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB
[env:ttgo_t8]
;https://docs.platformio.org/en/latest/boards/espressif32/esp-wrover-kit.html
board = esp-wrover-kit
build_flags = ${env.build_flags}
-DHAL=5
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
[env:complete]
;https://docs.platformio.org/en/latest/boards/espressif32/esp-wrover-kit.html
board = esp-wrover-kit
board_build.partitions = custom_16mb_ota.csv
build_flags = ${env.build_flags}
-DHAL=6
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB
; custom board based on 8 MB flash devkitc
[env:esp32-wrover-devkitc-v4-8mb]
;https://docs.platformio.org/en/latest/boards/espressif32/esp-wrover-kit.html
board = esp-wrover-kit
board_build.partitions = custom_8mb_ota.csv
build_flags = ${env.build_flags}
-DHAL=99
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT ; 8MB is fine
board_upload.maximum_size = 8388608
board_upload.flash_size = 8MB
;;; Change upload/monitor-port of your board regarding your operating-system and develboard!
;MAC: /dev/cu.SLAB_USBtoUART / /dev/cu.wchusbserial1420 / /dev/cu.wchusbserial1410
;WINDOWS: COM3
;LINUX: /dev/ttyUSB0 (if it's the first USB-device attached, otherwise increase number)
[env:esp32-s3-devkitc-1]
;https://docs.platformio.org/en/latest/boards/espressif32/esp32-s3-devkitc-1.html
board = esp32-s3-devkitc-1
platform = espressif32
; change microcontroller
board_build.mcu = esp32s3
; change MCU frequency
build_flags = ${env.build_flags}
-DHAL=99
-DLOG_BUFFER_SIZE=10240