Code: Select all
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 /Users/itagakitomoya/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/Adafruit_TinyUSB.h:40:0,
from /var/folders/c6/dc50m8yx7nd721_8tf5zgxhm0000gn/T/arduino_modified_sketch_501094/midi_test.ino:19:
/Users/itagakitomoya/Documents/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 /Users/itagakitomoya/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.1/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/Adafruit_TinyUSB_Core.h:35:0,
from /Users/itagakitomoya/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.1/cores/arduino/Arduino.h:171,
from /var/folders/c6/dc50m8yx7nd721_8tf5zgxhm0000gn/T/arduino_modified_sketch_501094/midi_test.ino:18:
/Users/itagakitomoya/Library/Arduino15/packages/Seeeduino/hardware/samd/1.8.1/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;
^~~~~~~~~~~~~
exit status 1
cannot declare variable 'usb_midi' to be of abstract type 'Adafruit_USBD_MIDI'
---
Arduino: Seeeduino XIAO
Arduino IDE: 1.8.15
Adafruit_TinyUSB: 1.0.3
MacbookPro: 11.2.3 (Big Sur)