-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathplatformio.ini
94 lines (85 loc) · 8.16 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
; PlatformIO Project Configuration File
[common]
monitor_speed = 115200 ; 921600, 512000, 460800, 256000, 115200
build_flags =
-D TFT_FONT=0 ; (0) GARAMOND, (1) TFT_TIMES_NEW_ROMAN, (2) TFT_FREE_SERIF_ITALIC, (3) TFT_ARIAL, (4) Z300
-D NTP_Pool_1='"europe.pool.ntp.org"' ;note the double quotes
-D NTP_Pool_2='"pool.ntp.org"'
-D NTP_Pool_3='"time-a-g.nist.gov"'
-D CORE_DEBUG_LEVEL=2 ; 0 None, 1 Error, 2 Warn, 3 Info, 4 Debug, 5 Verbose
-D CONFIG_ARDUHAL_LOG_COLORS=1
-D ARDUINO_RUNNING_CORE=1 ; Arduino Runs On Core (setup, loop)
-D ARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core
-D AUDIOTASK_CORE=0 ; 0 or 1 - reads from the InBuffer, decodes and feeds I2S
-D BOARD_HAS_PSRAM=1
-D MONITOR_SPEED=${this.monitor_speed}
;-D SHA_SIZE=20
-Wall
-Wextra
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[esp32]
board_build.partitions = boards/miniwebradio4MB.csv ; 4MB Flash
;board_build.partitions = boards/miniwebradio8MB.csv ; 8MB Flash
;board_build.partitions = boards/miniwebradio16MB.csv ; 16MB Flash
board = ESP32-Dev-4MB ; 4MB Flash
;board = ESP32-Dev-8MB ; 8MB Flash
;board = ESP32-Dev-16MB ;16MB Flash
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[esp32s3]
;board_build.partitions = boards/miniwebradio4MB.csv ; 4MB Flash
;board_build.partitions = boards/miniwebradio8MB.csv ; 8MB Flash
board_build.partitions = boards/miniwebradio16MB.csv ; 16MB Flash
;board = ESP-S3-12K-4MB ; 4 MB Flash, 8MB have quad PSRAM --> must change in menuconfig
;board = ESP-S3-12K-8MB ; 8 MB Flash, 8MB have quad PSRAM --> must change in menuconfig
;board = ESP-S3-12K-16MB ; 16 MB Flash, 8MB have quad PSRAM --> must change in menuconfig
;board = ESP32-S3-DevKitC-1-N8R2 ; 8 MB Flash, 2MB have quad PSRAM --> must change in menuconfig
;board = ESP32-S3-DevKitC-1-N8R8 ; 8 MB Flash, 8MB octo PSRAM
board = ESP32-S3-DevKitC-1-N16R8 ; 16 MB Flash, 8MB octo PSRAM
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[ota]
upload_port = "MiniWebRadio.local"
upload_protocol = espota ;update code over WiFi, uploadPort = Auto, must have at least 8MB flash
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env]
extra_scripts = pre:env-extra.py
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip ;Arduino 3.0.5 / IDF 5.1.4
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10-rc3/platform-espressif32.zip ;Arduino 3.1.0 / IDF 5.3.1
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip ;Arduino core 3.0.7 / IDF 5.1.4
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip ;Arduino core 3.1.0 / IDF 5.3.1
platform = https://github.com/pioarduino/platform-espressif32.git#325c56f
framework = arduino, espidf
build_flags = ${common.build_flags}
monitor_speed = ${common.monitor_speed}
monitor_filters = esp32_exception_decoder, send_on_enter, log2file
upload_speed = 921600 ; 921600, 512000, 460800, 256000, 115200
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
lib_deps =
https://github.com/schreibfaul1/ESP32-audioI2S.git
https://github.com/schreibfaul1/ESP32-KCX-BT-EMITTER.git
https://github.com/schreibfaul1/ESP32-DLNA-Client.git
https://github.com/schreibfaul1/ESP32-IR-Remote-Control.git
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env:esp32]
board = ${esp32.board}
board_build.partitions = ${esp32.board_build.partitions}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env:esp32s3]
board = ${esp32s3.board}
board_build.partitions = ${esp32s3.board_build.partitions}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env:esp32_OTA]
board = ${esp32.board}
board_build.partitions = ${esp32.board_build.partitions}
upload_port = ${ota.upload_port}
upload_protocol = ${ota.upload_protocol}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env:esp32s3_OTA]
board = ${esp32s3.board}
board_build.partitions = ${esp32s3.board_build.partitions}
upload_port = ${ota.upload_port}
upload_protocol = ${ota.upload_protocol}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————