I found an example for the Wio Terminal is not working: https://wiki.seeedstudio.com/Wio-Terminal-USBCLIENT-MIDI/
Also step 2 in INSTALLING LIBRARIES should point to the right file. It now says:
Now, the library can be installed to the Arduino IDE. Open the Arduino IDE, and click sketch
→ Include Library
→ Add .ZIP Library
, and choose the **Seeed_Arduino_LCD**
file that you’ve have just downloaded.
If all is installed and the TinyUSB is chooses as the USB Stack, it seems that TinyUSB is not compatible with the Wio Terminal.
I understand this is a very old problem (see: https://forums.adafruit.com/viewtopic.php?f=25&t=179789 )
Can this be fixed without going back a lot of versions of the TinyUSB library?
`Arduino:1.8.15 (Mac OS X), Board:“Seeeduino Wio Terminal, Master, Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), TinyUSB, Off, On”
In file included from /Arduino/libraries/Adafruit_TinyUSB_Library/src/Adafruit_TinyUSB.h:41:0,
from /Arduino/libraries/Adafruit_TinyUSB_Library/examples/MIDI/midi_test/midi_test.ino:19:
/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/hid/Adafruit_USBD_HID.h:42:40: error: ‘HID_ITF_PROTOCOL_NONE’ was not declared in this scope
uint8_t protocol = HID_ITF_PROTOCOL_NONE,
^~~~~~~~~~~~~~~~~~~~~
/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/hid/Adafruit_USBD_HID.h:42:40: note: suggested alternative: ‘HID_PROTOCOL_NONE’
uint8_t protocol = HID_ITF_PROTOCOL_NONE,
^~~~~~~~~~~~~~~~~~~~~
HID_PROTOCOL_NONE
midi_test:23:20: error: cannot declare variable ‘usb_midi’ to be of abstract type ‘Adafruit_USBD_MIDI’
Adafruit_USBD_MIDI usb_midi;
^~~~~~~~
In file included from /Arduino/libraries/Adafruit_TinyUSB_Library/src/Adafruit_TinyUSB.h:42:0,
from /Arduino/libraries/Adafruit_TinyUSB_Library/examples/MIDI/midi_test/midi_test.ino:19:
/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/midi/Adafruit_USBD_MIDI.h:31:7: note: because the following virtual functions are pure within ‘Adafruit_USBD_MIDI’:
class Adafruit_USBD_MIDI : public Stream, public Adafruit_USBD_Interface {
^~~~~~~~~~~~~~~~~~
In file included from /Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.3/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/Adafruit_TinyUSB_Core.h:35:0,
from /Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.3/cores/arduino/Arduino.h:173,
from /Arduino/libraries/Adafruit_TinyUSB_Library/examples/MIDI/midi_test/midi_test.ino:18:
/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.3/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/Adafruit_USBD_Device.h:38:22: note: virtual uint16_t Adafruit_USBD_Interface::getDescriptor(uint8_t, uint8_t*, uint16_t)
virtual uint16_t getDescriptor(uint8_t itfnum, uint8_t* buf, uint16_t bufsize) = 0;
^~~~~~~~~~~~~
/Arduino/libraries/Adafruit_TinyUSB_Library/examples/MIDI/midi_test/midi_test.ino: In function ‘void setup()’:
midi_test:64:11: error: ‘TinyUSBDevice’ was not declared in this scope
while( !TinyUSBDevice.mounted() ) delay(1);
^~~~~~~~~~~~~
/Arduino/libraries/Adafruit_TinyUSB_Library/examples/MIDI/midi_test/midi_test.ino:64:11: note: suggested alternative: ‘USBDevice’
while( !TinyUSBDevice.mounted() ) delay(1);
^~~~~~~~~~~~~
USBDevice
Meerdere bibliotheken gevonden voor “MIDI.h”
Gebruikt: /Arduino/libraries/MIDI_Library
Niet gebruikt: /Arduino/libraries/arduino_midi_library-master
exit status 1
cannot declare variable ‘usb_midi’ to be of abstract type ‘Adafruit_USBD_MIDI’
`