Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

ESP32 usage #79

@highway11

Description

@highway11

Has anyone successfully used hairless-midi with an ESP32 on Windows 10?
I'm not having luck with either the old ardumidi library or the new ArduinoMidi library.

In the older ardumidi.h library it throws a compile error:
ardumidi.cpp:60:30: error: 'BYTE' was not declared in this scope
I was able to fix this by removing the last 'BYTE' parameter from the Serial.print call.
However I just get Error: got unexpected data byte 0x30. over and over in Hairless Midi
image

If I use the newer Arduino Midi library I'm getting absolutely no serial output at all, I feel like I may be missing something here:

#include <MIDI.h>

// Create and bind the MIDI interface to the default hardware Serial port
//MIDI_CREATE_DEFAULT_INSTANCE();
MIDI_CREATE_INSTANCE(HardwareSerial, Serial, MIDI);



void setup() {
  MIDI.begin(MIDI_CHANNEL_OMNI);  // Listen to all incoming messages
  Serial.begin(115200);
}

void loop() {
  
    MIDI.sendNoteOn(1, 127, 1);
    //MIDI.read();
    delay(1000);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions