You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally I found a working way to set the device information on Arduino Pro Micro.
This method probably works on other boards too which are based on ATMega32U4.
You will need to include these 2 files in your sketch:
usb_rename.cpp
usb_rename.h
This example sketch programs Pro Micro as a basic MIDI USB <> MIDI Serial converter:
/*
* Simple USBMIDI converter v0.1
*
* Forwards MIDI messages from USB to MIDI and back
* If you short TX and RX pins of arduino, it should act as MIDI loopback
*
* Note that Serial1 is used by Arduino Leonardo
* Serial port on your board might have different name (eg.: Serial, Serial2, ...)
*
* (c) Tomas 'harvie' Mudrunka 2019
*/
#include "usb_rename.h"
#include <usbmidi.h>
// Product name, Manufacturer, Device Serial Number
// Any argument can be left off, or NULL to keep the original Arduino name
USBRename dummy = USBRename("PedalinoMini-EFC40A24", "MY_COMPANY_NAME", "EFC40A24-2022-1009-210520");
void setup() {
USBSetup();
Serial1.begin(31250); //MIDI baudrate
}
void loop() {
//Handle USB communication
USBMIDI.poll();
//Forward MIDI
while(USBMIDI.available()) Serial1.write(USBMIDI.read());
Serial1.flush();
while(Serial1.available()) USBMIDI.write(Serial1.read());
USBMIDI.flush();
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
Finally I found a working way to set the device information on Arduino Pro Micro.
This method probably works on other boards too which are based on ATMega32U4.
Here is the link to the source files:
https://github.com/mon/Arduino-USB-Rename
You will need to include these 2 files in your sketch:
usb_rename.cpp
usb_rename.h
This example sketch programs Pro Micro as a basic MIDI USB <> MIDI Serial converter:
Beta Was this translation helpful? Give feedback.
All reactions