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
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
+9
-10
@@ -3,8 +3,15 @@
|
|||||||
|
|
||||||
[env:esp32s3]
|
[env:esp32s3]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32-s3-devkitc-1
|
board = launchpad_x_variant
|
||||||
framework = arduino
|
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 =
|
lib_deps =
|
||||||
adafruit/Adafruit TinyUSB Library@3.1.0
|
adafruit/Adafruit TinyUSB Library@3.1.0
|
||||||
fastled/FastLED@^3.9.0
|
fastled/FastLED@^3.9.0
|
||||||
@@ -12,12 +19,4 @@ lib_deps =
|
|||||||
build_unflags =
|
build_unflags =
|
||||||
-DARDUINO_USB_MODE=1
|
-DARDUINO_USB_MODE=1
|
||||||
|
|
||||||
build_flags =
|
|
||||||
-DARDUINO_USB_MODE=0
|
|
||||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
||||||
-DUSE_TINYUSB=1
|
|
||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
|
||||||
board_build.partitions = default_8MB.csv
|
|
||||||
board_build.arduino.memory_type = qio_opi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user