mirror of
https://github.com/C0ntroller/keyboard.git
synced 2024-11-24 23:44:49 +01:00
Correct naming
Co-authored-by: Oliver Parczyk <oliver.parczyk@mailbox.tu-dresden.de>
This commit is contained in:
parent
2cd7817d5c
commit
e1ca9dc92f
@ -1,8 +1,5 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#define MIDI_NAME {'P', 'i', 'n', 'g', 'b', 'o', 'a', 'r', 'd'}
|
|
||||||
#define MIDI_NAME_LEN 9
|
|
||||||
|
|
||||||
#define KEY_GROUP_NUM 9
|
#define KEY_GROUP_NUM 9
|
||||||
#define KEY_PINS 6
|
#define KEY_PINS 6
|
||||||
#define NUMBER_OF_KEYS 49
|
#define NUMBER_OF_KEYS 49
|
||||||
|
13
src/name.c
Normal file
13
src/name.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// To give your USB MIDI device 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 {'P', 'i', 'n', 'g', 'b', 'o', 'a', 'r', 'd'}
|
||||||
|
#define MIDI_NAME_LEN 9
|
||||||
|
|
||||||
|
// 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
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user