jamesmelling
New member
Hi all,
Forgive me, as I'm very new to Arduino/Teensy.
I am looking to create a very simple 6 button USB-MIDI controller to generate program changes. I adapted one of the example programs (USB_MIDI>Buttons) to do what I wanted it to, and it would not compile. Upon reverting to the original example file and trying to compile it, it still would not compile, and gave the following error:
On Arduino 1.0.5, Teensyduino 1.1.9 on Mac OS X 10.8.4, and it is configured for Teensy 3.1 and USB Type "MIDI".
Any ideas? Am I doing something REALLY stupid?!
Thanks a lot!
James
Forgive me, as I'm very new to Arduino/Teensy.
I am looking to create a very simple 6 button USB-MIDI controller to generate program changes. I adapted one of the example programs (USB_MIDI>Buttons) to do what I wanted it to, and it would not compile. Upon reverting to the original example file and trying to compile it, it still would not compile, and gave the following error:
Code:
Arduino: 1.0.5 (Mac OS X), Board: "Teensy 3.1"
Buttons.cpp.o: In function `usb_midi_class::sendNoteOn(unsigned long, unsigned long, unsigned long)':
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: undefined reference to `usb_midi_write_packed'
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: undefined reference to `usb_midi_write_packed'
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: undefined reference to `usb_midi_write_packed'
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: undefined reference to `usb_midi_write_packed'
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: undefined reference to `usb_midi_write_packed'
Buttons.cpp.o:/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:100: more undefined references to `usb_midi_write_packed' follow
Buttons.cpp.o: In function `usb_midi_class::read(unsigned char)':
/Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/usb_midi.h:130: undefined reference to `usb_midi_read'
collect2: error: ld returned 1 exit status
On Arduino 1.0.5, Teensyduino 1.1.9 on Mac OS X 10.8.4, and it is configured for Teensy 3.1 and USB Type "MIDI".
Any ideas? Am I doing something REALLY stupid?!
Thanks a lot!
James