arduino_midi_library icon indicating copy to clipboard operation
arduino_midi_library copied to clipboard

Midi not compatible with adafruit_ssd1306

Open ZheTheBear opened this issue 4 years ago • 1 comments

Hello, I've noticed that the MIDI.H function: MIDI_CREATE_DEFAULT_INSTANCE() isn't compatible with the function display.begin(SSD1306_SWITCHCAPVCC, 0x3C) from the adafruit_ssd1306 display lcd library. The function display.begin(...) returns 0 which means: "SSD1306 allocation failed" when MIDI_CREATE_DEFAULT_INSTANCE() is called. My guess is that the problem resides in memory allocation (Duh) but couldn't investigate any further.

The solution I found for this was to use a reduced version of the SSD1306 oled display library called SSD1306ascii (It works with both wire and avri2c). Hope this helps anyone willing to mix this two libraries. I didn't know exactly where to put this so if this doesn't belong in issues please move this somewhere else.

ZheTheBear avatar Oct 22 '20 01:10 ZheTheBear

I'm encountering the same problem in combination with:

  • fortyseveneffects/MIDI Library@^5.0.2
  • adafruit/Adafruit SSD1306@^2.4.3

mtak avatar Feb 09 '21 21:02 mtak