forked from schreibfaul1/ESP32-MiniWebRadio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
85 lines (71 loc) · 6.18 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
; 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=3 ; 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=0 ; Events Run On Core
-D BOARD_HAS_PSRAM=1
-D MONITOR_SPEED=${this.monitor_speed}
-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 quad PSRAM *1)
;board = ESP-S3-12K-8MB ; 8 MB Flash, 8MB quad PSRAM *1)
;board = ESP-S3-12K-16MB ; 16 MB Flash, 8MB quad PSRAM *1)
;board = ESP32-S3-DevKitC-1-N8R2 ; 8 MB Flash, 2MB quad PSRAM *1)
;board = ESP32-S3-DevKitC-1-N8R8 ; 8 MB Flash, 8MB octo PSRAM *2)
board = ESP32-S3-DevKitC-1-N16R8 ; 16 MB Flash, 8MB octo PSRAM *2)
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env]
extra_scripts = pre:env-extra.py
platform = https://github.com/platformio/platform-espressif32.git#v6.4.0
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
framework = arduino, espidf
;platform = https://github.com/Jason2866/platform-espressif32.git
;platform = https://github.com/platformio/platform-espressif32.git
;platform_packages =
; platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
; platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.2/esp32-arduino-libs-3.0.2.zip
;framework = arduino, espidf
build_flags = ${common.build_flags}
monitor_speed = ${common.monitor_speed}
;upload_port = "MiniWebRadio.local"
;upload_protocol = espota ;update code over WiFi, uploadPort = Auto, must have at least 8MB flash
monitor_filters = esp32_exception_decoder, send_on_enter
upload_speed = 460800 ; 921600, 512000, 460800, 256000, 115200
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}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
; *1) in menuconfig the type of PSRAM must be set to QUAD!
; component config ---> ESP32S3-Specific ---> SPI RAM config ---> MODE (QUAD/OCT)... ---> (x) Quad Mode PSRAM
; *2) in menuconfig the type of PSRAM must be set to OCTAL!
; component config ---> ESP32S3-Specific ---> SPI RAM config ---> MODE (QUAD/OCT)... ---> (x) Octal Mode PSRAM