-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
95 lines (79 loc) · 2.83 KB
/
platformio.ini
File metadata and controls
95 lines (79 loc) · 2.83 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
; PlatformIO Project Configuration File
; SpojBoard - Smart Panel for Onward Journeys
;
; Multi-Hardware Support: MatrixPortal and ESP32-S3 N8R2
; ============================================================================
; Common Configuration
; ============================================================================
[common]
lib_deps =
; HUB75 LED Matrix Driver
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA.git
; JSON parsing
bblanchon/ArduinoJson@^6.21.3
; Adafruit GFX (required by display library)
adafruit/Adafruit GFX Library@^1.11.9
; Telnet debugging
https://github.com/LennartHennigs/ESPTelnet.git
; MQTT client
knolleary/PubSubClient@^2.8.0
build_flags =
-DCORE_DEBUG_LEVEL=1
-DARDUINO_USB_CDC_ON_BOOT=1
-Wno-deprecated-declarations
extra_scripts =
pre:scripts/build_timestamp.py
post:scripts/post_build.py
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; ============================================================================
; Hardware Variant: Adafruit MatrixPortal ESP32-S3
; ============================================================================
[env:matrixportal_s3]
platform = espressif32
board = adafruit_matrixportal_esp32s3
framework = arduino
; Memory optimization - Custom OTA partitions (2MB app0 + 2MB app1)
board_build.partitions = partitions_custom.csv
; Inherit common settings
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; Hardware variant identification
build_flags =
${common.build_flags}
-DHARDWARE_VARIANT=1
-DHARDWARE_NAME=\"matrixportal_s3\"
-DHARDWARE_DISPLAY_NAME=\"MatrixPortal-S3\"
; Variant metadata (used by build scripts)
custom_hardware_variant = matrixportal_s3
; Upload settings
upload_speed = 921600
; ============================================================================
; Hardware Variant: Generic ESP32-S3 N8R2 (8MB Flash, 2MB PSRAM)
; ============================================================================
[env:esp32_s3_n8r2]
platform = espressif32
board = esp32-s3-devkitc-1
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 8MB
framework = arduino
; Memory optimization - Custom OTA partitions (2MB app0 + 2MB app1)
board_build.partitions = partitions_custom.csv
; Inherit common settings
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; Hardware variant identification
build_flags =
${common.build_flags}
-DHARDWARE_VARIANT=2
-DHARDWARE_NAME=\"esp32_s3_n8r2\"
-DHARDWARE_DISPLAY_NAME=\"ESP32-S3-N8R2\"
; Variant metadata (used by build scripts)
custom_hardware_variant = esp32_s3_n8r2
; Upload settings
upload_speed = 921600