diff --git a/examples/TeensyUsbMasterMidiClock/name.c b/examples/TeensyUsbMasterMidiClock/name.c new file mode 100644 index 0000000..0e26fb3 --- /dev/null +++ b/examples/TeensyUsbMasterMidiClock/name.c @@ -0,0 +1,19 @@ +// To give your project a unique name, this code must be +// placed into a .c file (its own tab). It can not be in +// a .cpp file or your main sketch (the .ino file). + +#include "usb_names.h" + +// Edit these lines to create your own name. The length must +// match the number of characters in your custom name. + +#define MIDI_NAME {'u','c','l','o','c','k','_','1'} +#define MIDI_NAME_LEN 8 + +// Do not change this part. This exact format is required by USB. + +struct usb_string_descriptor_struct usb_string_product_name = { + 2 + MIDI_NAME_LEN * 2, + 3, + MIDI_NAME +}; diff --git a/examples/TeensyUsbSlaveMidiClock/name.c b/examples/TeensyUsbSlaveMidiClock/name.c new file mode 100644 index 0000000..0e26fb3 --- /dev/null +++ b/examples/TeensyUsbSlaveMidiClock/name.c @@ -0,0 +1,19 @@ +// To give your project a unique name, this code must be +// placed into a .c file (its own tab). It can not be in +// a .cpp file or your main sketch (the .ino file). + +#include "usb_names.h" + +// Edit these lines to create your own name. The length must +// match the number of characters in your custom name. + +#define MIDI_NAME {'u','c','l','o','c','k','_','1'} +#define MIDI_NAME_LEN 8 + +// Do not change this part. This exact format is required by USB. + +struct usb_string_descriptor_struct usb_string_product_name = { + 2 + MIDI_NAME_LEN * 2, + 3, + MIDI_NAME +}; diff --git a/examples/TeensyUsbSlaveMidiClockMonitor/name.c b/examples/TeensyUsbSlaveMidiClockMonitor/name.c new file mode 100644 index 0000000..0e26fb3 --- /dev/null +++ b/examples/TeensyUsbSlaveMidiClockMonitor/name.c @@ -0,0 +1,19 @@ +// To give your project a unique name, this code must be +// placed into a .c file (its own tab). It can not be in +// a .cpp file or your main sketch (the .ino file). + +#include "usb_names.h" + +// Edit these lines to create your own name. The length must +// match the number of characters in your custom name. + +#define MIDI_NAME {'u','c','l','o','c','k','_','1'} +#define MIDI_NAME_LEN 8 + +// Do not change this part. This exact format is required by USB. + +struct usb_string_descriptor_struct usb_string_product_name = { + 2 + MIDI_NAME_LEN * 2, + 3, + MIDI_NAME +};