Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-S3 doesn't work as USB-MIDI #1110

Closed
MehmetColaak opened this issue Jan 13, 2025 · 1 comment
Closed

ESP32-S3 doesn't work as USB-MIDI #1110

MehmetColaak opened this issue Jan 13, 2025 · 1 comment

Comments

@MehmetColaak
Copy link

Describe the bug
I followed MIDI-Output example and the code compiles and updated without any issue. But my ESP-32 doesn't show as midi device.

platformio.ini file

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200

build_flags = 
    -D ARDUINO_USB_MODE=1
    -D ARDUINO_USB_CDC_ON_BOOT=1

lib_deps = https://github.com/tttapa/Control-Surface.git#main
lib_ignore = MIDIUSB

Code

#include <Arduino.h>
#include <Control_Surface.h> // Include the Control Surface library

// The MIDI over USB interface to use
USBMIDI_Interface midi;

// MIDI note number, channel, and velocity to use
const MIDIAddress address {60, Channel_1};
const uint8_t velocity = 127;

void setup() 
{
  midi.begin(); // Initialize the MIDI interface
}

void loop() 
{
  midi.sendNoteOn(address, velocity);
  delay(500);
  midi.sendNoteOff(address, velocity);
  delay(500);

  midi.update(); // Handle or discard MIDI input
}
@tttapa
Copy link
Owner

tttapa commented Jan 13, 2025

Duplicate of #1108

@tttapa tttapa marked this as a duplicate of #1108 Jan 13, 2025
@tttapa tttapa closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants