Skip to content

Commit

Permalink
Change: USB VID and PID
Browse files Browse the repository at this point in the history
  • Loading branch information
YuuichiAkagawa committed Oct 27, 2024
1 parent e60c476 commit 03c0b53
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Arduino/USBMIDItoSyncConverter/USBMIDItoSyncConverter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -436,4 +438,4 @@ void __not_in_flash_func(loop)() {
g_dipsw_mode_value = mode_sw;
applyModeValue(g_dipsw_mode_value);
}
}
}

0 comments on commit 03c0b53

Please sign in to comment.