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

Midi not compatible with adafruit_ssd1306 #179

Open
ZheTheBear opened this issue Oct 22, 2020 · 1 comment
Open

Midi not compatible with adafruit_ssd1306 #179

ZheTheBear opened this issue Oct 22, 2020 · 1 comment

Comments

@ZheTheBear
Copy link

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.

@mtak
Copy link

mtak commented Feb 9, 2021

I'm encountering the same problem in combination with:

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

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