From b380133b3eaade04d7a68f28b14c17bf234d95f2 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Thu, 25 Jun 2026 08:27:47 +0000 Subject: [PATCH] Add custom board definition with Launchpad X VID/PID (0x1235/0x0103) - boards/launchpad_x_variant.json defines custom board - platformio.ini uses custom board - Board sets VID/PID at hardware level --- boards/launchpad_x_variant.json | 43 +++++++++++++++++++++++++++++++++ platformio.ini | 19 +++++++-------- 2 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 boards/launchpad_x_variant.json diff --git a/boards/launchpad_x_variant.json b/boards/launchpad_x_variant.json new file mode 100644 index 0000000..2135d9f --- /dev/null +++ b/boards/launchpad_x_variant.json @@ -0,0 +1,43 @@ +{ + "build": { + "arduino": { + "memory_type": "qio_opi", + "usb_mode": 0, + "usb_cdc_on_boot": 1, + "use_tinyusb": 1, + "vid": "0x1235", + "pid": "0x0103" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DUSE_TINYUSB=1", + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "mcu": "esp32s3", + "partitions": "default_8MB.csv" + }, + "connectivity": [ + "usb" + ], + "debug": { + "openocd_board": "esp32-s3-devkitc-1" + }, + "frameworks": [ + "arduino" + ], + "name": "Loopy MIDI Controller (Launchpad X VID/PID)", + "upload": { + "flash_size": "8MB", + "maximum_ram_size": 512000, + "maximum_size": 8388608, + "protocol": "esptool", + "protocols": [ + "esptool", + "espota" + ], + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://gitea.jackofclubs.com.au/ash/loopy_midi_controller", + "vendor": "Ash" +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 01ceb8a..373073f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -3,8 +3,15 @@ [env:esp32s3] platform = espressif32 -board = esp32-s3-devkitc-1 -framework = arduino +board = launchpad_x_variant +board_build.arduino.memory_type = qio_opi +board_build.partitions = default_8MB.csv +board_build.arduino.vid = 0x1235 +board_build.arduino.pid = 0x0103 +board_build.arduino.usb_mode = 0 +board_build.arduino.usb_cdc_on_boot = 1 +board_build.arduino.use_tinyusb = 1 + lib_deps = adafruit/Adafruit TinyUSB Library@3.1.0 fastled/FastLED@^3.9.0 @@ -12,12 +19,4 @@ lib_deps = build_unflags = -DARDUINO_USB_MODE=1 -build_flags = - -DARDUINO_USB_MODE=0 - -DARDUINO_USB_CDC_ON_BOOT=1 - -DUSE_TINYUSB=1 - monitor_speed = 115200 - -board_build.partitions = default_8MB.csv -board_build.arduino.memory_type = qio_opi