C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:14:1: error: 'USBCDC' does not name a type USBCDC USBSerial; ^~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:17:1: error: 'USBMSC' does not name a type USBMSC MSC; ^~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:155:41: error: 'esp_event_base_t' has not been declared static void usbEventCallback(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data){ ^~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:155:41: error: 'esp_event_base_t' has not been declared static void usbEventCallback(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data){ ^~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino: In function 'void usbEventCallback(void*, int, int32_t, void*)': C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:156:20: error: 'ARDUINO_USB_EVENTS' was not declared in this scope if(event_base == ARDUINO_USB_EVENTS){ ^~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:156:20: note: suggested alternative: 'ARDUINO_ISR_ATTR' if(event_base == ARDUINO_USB_EVENTS){ ^~~~~~~~~~~~~~~~~~ ARDUINO_ISR_ATTR C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:157:5: error: 'arduino_usb_event_data_t' was not declared in this scope arduino_usb_event_data_t * data = (arduino_usb_event_data_t*)event_data; ^~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:157:32: error: 'data' was not declared in this scope arduino_usb_event_data_t * data = (arduino_usb_event_data_t*)event_data; ^~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:157:32: note: suggested alternative: 'atan' arduino_usb_event_data_t * data = (arduino_usb_event_data_t*)event_data; ^~~~ atan C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:157:65: error: expected primary-expression before ')' token arduino_usb_event_data_t * data = (arduino_usb_event_data_t*)event_data; ^ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:159:12: error: 'ARDUINO_USB_STARTED_EVENT' was not declared in this scope case ARDUINO_USB_STARTED_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:159:12: note: suggested alternative: 'ARDUINO_USB_CDC_ON_BOOT' case ARDUINO_USB_STARTED_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ ARDUINO_USB_CDC_ON_BOOT C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:162:12: error: 'ARDUINO_USB_STOPPED_EVENT' was not declared in this scope case ARDUINO_USB_STOPPED_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:162:12: note: suggested alternative: 'ARDUINO_USB_CDC_ON_BOOT' case ARDUINO_USB_STOPPED_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ ARDUINO_USB_CDC_ON_BOOT C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:165:12: error: 'ARDUINO_USB_SUSPEND_EVENT' was not declared in this scope case ARDUINO_USB_SUSPEND_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:165:12: note: suggested alternative: 'ARDUINO_USB_CDC_ON_BOOT' case ARDUINO_USB_SUSPEND_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~~ ARDUINO_USB_CDC_ON_BOOT C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:168:12: error: 'ARDUINO_USB_RESUME_EVENT' was not declared in this scope case ARDUINO_USB_RESUME_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:168:12: note: suggested alternative: 'ARDUINO_USB_CDC_ON_BOOT' case ARDUINO_USB_RESUME_EVENT: ^~~~~~~~~~~~~~~~~~~~~~~~ ARDUINO_USB_CDC_ON_BOOT C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino: In function 'void setup()': C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:182:3: error: 'USB' was not declared in this scope USB.onEvent(usbEventCallback); ^~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:183:3: error: 'MSC' was not declared in this scope MSC.vendorID("ESP32");//max 8 chars ^~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:191:3: error: 'USBSerial' was not declared in this scope USBSerial.begin(); ^~~~~~~~~ C:\Users\sothiag\AppData\Local\Temp\.arduinoIDE-unsaved202316-12136-9ele7n.ygel5\USBMSC\USBMSC.ino:191:3: note: suggested alternative: 'Serial' USBSerial.begin(); ^~~~~~~~~ Serial exit status 1 Compilation error: 'USBCDC' does not name a type