BlokasLabs / USBMIDI

USB MIDI library for Arduino.
Other
189 stars 14 forks source link

Example code fails to build #3

Closed oofus closed 5 years ago

oofus commented 5 years ago

Hi. Trying to build the example code for USBMIDI and it's failing with the following message

src\usbmidi_pluggableusb.cpp:90:2: error: 'Fifo' does not name a type

Fifo m_midiInFifo;

Seems not to be using the template to define the type, and fifo.h isn't included in usbmidi_pluggableusb.cpp.

This is V1.1.0 installed from within the Arduino IDE.

gtrainavicius commented 5 years ago

Hey, what board are you targeting?

gtrainavicius commented 5 years ago

Ok, I have just fixed the issue, tagged a v1.1.1 release. It should get picked up automatically by Arduino IDE eventually, but to get the fix sooner, just remove v1.1.0 USBMIDI library and do:

cd .../Arduino/libraries
git clone https://github.com/BlokasLabs/USBMIDI/

I've tested this Pluggable USB implementation with SparkFun ProMicro, works fine now. :)

Thank you for reporting the issue!

oofus commented 5 years ago

The board is a DIY-More Pro Micro. It's an equivalent of the Sparkfun ProMicro (Which I've used in the past) but it is recognised as a Leonardo.

Thanks for the quick fix, I'll try it out right now.

oofus commented 5 years ago

That has fixed the build issue, thanks. Now to test and write some of my own code !