Hello,
I have my first Teensy on the way and want to get a USB MIDI project working on it. The project works just fine on an Arduino Uno r3 with a USB host shield. In anticipation of my Teensy 3.6 arriving I tried to verify/compile my sketch for Teensy and got an error message, again this sketch works on an Arduino Uno.
It seems the problem lies within the library I’m using, and I know nothing about troubleshooting libraries. What does this mean and where should I go for help? Is there a simple fix that I can make to to the MS3.h file? Finally, which USB types should I select under the Arduino IDE board options section? (I’ll am using a mini USB Host shield on the Uno and plan to do the same with the Teensy, unless there’s a better option.)
Thank you in advance.
Library I need to use: https://github.com/MrHaroldA/MS3
Here is a minimal sketch with enough sample code to illustrate the error:
Here is the error I get when verify/compiling the sketch:
I have my first Teensy on the way and want to get a USB MIDI project working on it. The project works just fine on an Arduino Uno r3 with a USB host shield. In anticipation of my Teensy 3.6 arriving I tried to verify/compile my sketch for Teensy and got an error message, again this sketch works on an Arduino Uno.
It seems the problem lies within the library I’m using, and I know nothing about troubleshooting libraries. What does this mean and where should I go for help? Is there a simple fix that I can make to to the MS3.h file? Finally, which USB types should I select under the Arduino IDE board options section? (I’ll am using a mini USB Host shield on the Uno and plan to do the same with the Teensy, unless there’s a better option.)
Thank you in advance.
Library I need to use: https://github.com/MrHaroldA/MS3
Here is a minimal sketch with enough sample code to illustrate the error:
Code:
/**
This is an example for the MS-3 library.
Description removed…
*/
// Uncomment this to enable verbose debug messages.
//#define MS3_DEBUG_MODE
#include "Arduino.h"
#include "MS3.h"
// Initialize the MS3 class.
//MS3 MS3;
void setup() {
// set up MS 3
// I have code that goes here but isn't necessary to produce the error.
}
void loop() {
// I have code that goes here but isn't necessary to produce the error.
}
Here is the error I get when verify/compiling the sketch:
Code:
Arduino: 1.8.8 (Mac OS X), TD: 1.45, Board: "Teensy 3.6, All of the Above, 16 MHz (No USB), Debug, US English"
In file included from /Users/steve/Documents/Arduino/deleteMe/deleteMe.ino:12:0:
/Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h: In member function 'bool MS3::receive(long unsigned int&, byte&)':
/Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h:184:46: error: no matching function for call to 'MS3::RecvData(unsigned int*, byte [64])'
if (MS3::RecvData(&rcvd, incoming) == 0) {
^
In file included from /Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h:75:0,
from /Users/steve/Documents/Arduino/deleteMe/deleteMe.ino:12:
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:75:17: note: candidate: uint8_t USBH_MIDI::RecvData(uint16_t*, uint8_t*)
uint8_t RecvData(uint16_t *bytes_rcvd, uint8_t *dataptr);
^
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:75:17: note: no known conversion for argument 1 from 'unsigned int*' to 'uint16_t* {aka short unsigned int*}'
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:76:17: note: candidate: uint8_t USBH_MIDI::RecvData(uint8_t*, bool)
uint8_t RecvData(uint8_t *outBuf, bool isRaw=false);
^
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:76:17: note: no known conversion for argument 1 from 'unsigned int*' to 'uint8_t* {aka unsigned char*}'
Error compiling for board Teensy 3.6.
Last edited: