Add custom pins_arduino.h variant with Launchpad X VID/PID
- variants/esp32s3/pins_arduino.h overrides USB_VID/USB_PID - Included via -I in build_flags before core variant - This should force USB descriptors at hardware level
This commit is contained in:
+1
-2
@@ -16,10 +16,9 @@ build_flags =
|
||||
-DARDUINO_USB_MODE=0
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
-DUSE_TINYUSB=1
|
||||
-I${PROJECT_DIR}/variants/esp32s3
|
||||
|
||||
monitor_speed = 115200
|
||||
|
||||
board_build.partitions = default_8MB.csv
|
||||
board_build.arduino.memory_type = qio_opi
|
||||
board_build.arduino.vid = 0x1235
|
||||
board_build.arduino.pid = 0x0103
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// pins_arduino.h for ESP32-S3 DevKitC-1 with Launchpad X USB VID/PID
|
||||
|
||||
#ifndef _VARIANT_ESP32S3_DEVKITC_1_
|
||||
#define _VARIANT_ESP32S3_DEVKITC_1_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Override USB VID/PID to match Novation Launchpad X (0x1235/0x0103)
|
||||
// This must be before Arduino.h includes it
|
||||
#define USB_VID 0x1235
|
||||
#define USB_PID 0x0103
|
||||
#define USB_MANUFACTURER "Novation"
|
||||
#define USB_PRODUCT "Launchpad X"
|
||||
|
||||
#include "../../.pio/packages/framework-arduinoespressif32/variants/esp32s3_devkitc/pins_arduino.h"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user