|
@@ -0,0 +1,39 @@
|
|
|
|
|
+; 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
|
|
|
|
|
+
|
|
|
|
|
+[env:esp32s3-n16r8]
|
|
|
|
|
+platform = espressif32
|
|
|
|
|
+board = esp32-s3-devkitc-1 ; 选通用 S3 DevKitC
|
|
|
|
|
+framework= arduino
|
|
|
|
|
+
|
|
|
|
|
+; --- Flash & PSRAM 接口配置 ---
|
|
|
|
|
+board_build.flash_mode = qio ; Flash 用 QIO
|
|
|
|
|
+board_build.arduino.memory_type = qio_opi ; Flash QIO + PSRAM Octal
|
|
|
|
|
+board_build.psram_type = opi ; PSRAM 用 Octal mode
|
|
|
|
|
+
|
|
|
|
|
+; --- 大小定义 ---
|
|
|
|
|
+board_upload.flash_size = 16MB
|
|
|
|
|
+board_upload.maximum_size = 16777216 ; 一定要和 16MB 对齐
|
|
|
|
|
+board_build.partitions = default_16MB.csv ; 用 16MB 分区表
|
|
|
|
|
+
|
|
|
|
|
+; --- 启用 PSRAM 宏 ---
|
|
|
|
|
+board_build.extra_flags = -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
|
|
+
|
|
|
|
|
+; --- 启用蓝牙功能 ---
|
|
|
|
|
+build_flags =
|
|
|
|
|
+ -DCONFIG_BT_NIMBLE_ENABLED=1
|
|
|
|
|
+ -DCONFIG_BT_ENABLED=1
|
|
|
|
|
+
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ h2zero/NimBLE-Arduino @ ^1.4.1
|
|
|
|
|
+
|
|
|
|
|
+; --- 串口监视器配置 ---
|
|
|
|
|
+monitor_speed = 115200 ; 设置串口监视器波特率
|
|
|
|
|
+monitor_filters = esp32_exception_decoder ; 启用 ESP32 异常解码器
|