From 03c0b53ecf204b54fe826b680508e026758375fc Mon Sep 17 00:00:00 2001 From: Yuuichi Akagawa Date: Sun, 27 Oct 2024 22:16:55 +0900 Subject: [PATCH] Change: USB VID and PID --- .../USBMIDItoSyncConverter.ino | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Arduino/USBMIDItoSyncConverter/USBMIDItoSyncConverter.ino b/Arduino/USBMIDItoSyncConverter/USBMIDItoSyncConverter.ino index 4dad442..3ffea2b 100644 --- a/Arduino/USBMIDItoSyncConverter/USBMIDItoSyncConverter.ino +++ b/Arduino/USBMIDItoSyncConverter/USBMIDItoSyncConverter.ino @@ -243,7 +243,7 @@ void setSPW(uint8_t c) { * off = high, on = low * * [MODE0] - * 0 : PPQ values are changed using DIP Switch. The value stored in the EEPROM is ignored. + * 0 : PPQ values ​​are changed using DIP Switch. The value stored in the EEPROM is ignored. * PPQ table * [MODE1] [MODE2] * 1 1 : 1 PPQ (3) @@ -378,9 +378,11 @@ void __not_in_flash_func(setup)() { TinyUSB_Device_Init(0); TinyUSBDevice.clearConfiguration(); - // If you have own VID and PID, you can use it. - //TinyUSBDevice.setID(0xvvvv, 0xpppp); - usb_midi.setStringDescriptor("USBMIDI2Sync converter"); + + // This VID and PID were assigned from pid.codes. + TinyUSBDevice.setID(0x1209, 0x3249); + TinyUSBDevice.setManufacturerDescriptor("ammlab.org"); + TinyUSBDevice.setProductDescriptor("USBMIDI2Sync converter"); // Initialize USB MIDI USBMIDI.begin(MIDI_CHANNEL_OMNI); @@ -436,4 +438,4 @@ void __not_in_flash_func(loop)() { g_dipsw_mode_value = mode_sw; applyModeValue(g_dipsw_mode_value); } -} +} \ No newline at end of file