; XIAO ESP32-C6 / YD-ESP32-S3 + DFRobot C4001 24GHz mmWave presence sensor ; ; ============================================================================ ; TO SWITCH BOARDS: change `default_envs` below to one of the [env:] names. ; yd_esp32_s3 -> YD-ESP32-S3 (ESP32-S3-WROOM-1 N16R8), CH343 COM port ; xiao_esp32c6 -> Seeed XIAO ESP32-C6, native USB Serial/JTAG ; Pin maps for each live in src/board_pins.h. ; Or build one explicitly without editing this file: pio run -e xiao_esp32c6 ; ============================================================================ [platformio] default_envs = yd_esp32_s3 ; ---------------------------------------------------------------- shared ---- [env] framework = arduino monitor_speed = 115200 monitor_filters = esp32_exception_decoder, time lib_deps = ; Registry copy lags behind; take it straight from DFRobot. https://github.com/DFRobot/DFRobot_C4001.git ; ----------------------------------------------------- YD-ESP32-S3 N16R8 ---- ; Detected on this machine: ESP32-S3 (QFN56) rev v0.2, 16MB quad flash, ; 8MB octal PSRAM, MAC 24:58:7c:cd:9a:d8, CH343 bridge (1a86:55d3). ; ; The board has two USB-C sockets. This env assumes the one marked COM (the ; CH343 UART bridge). Serial is therefore real UART0, not USB CDC, which also ; sidesteps the CDC-blocking behaviour that bit us on the C6. [env:yd_esp32_s3] platform = espressif32 board = esp32-s3-devkitc1-n16r8 build_flags = -DBOARD_YD_ESP32_S3 -DARDUINO_USB_CDC_ON_BOOT=0 ; Serial -> UART0 -> CH343 -> /dev/ttyACM0 -DCORE_DEBUG_LEVEL=1 ; ------------------------------------------------------ Seeed XIAO ESP32-C6 -- ; Detected earlier: ESP32-C6FH4 (QFN32) rev v0.1, 4MB flash, ; MAC e4:b3:23:b4:7b:c4, native USB Serial/JTAG (303a:1001). ; ; Needs Arduino-ESP32 core 3.x. The installed platform is the pioarduino fork ; (2026.02.30, core 3.3.7) which has the XIAO_ESP32C6 variant. The old registry ; espressif32 6.x has no C6 support -- don't downgrade. [env:xiao_esp32c6] platform = espressif32 board = seeed_xiao_esp32c6 build_flags = -DBOARD_XIAO_C6 -DARDUINO_USB_CDC_ON_BOOT=1 ; Serial -> native USB CDC -DCORE_DEBUG_LEVEL=1