You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Arduino NANO Esp32 Board
I've selected COM3 port from Arduino Ide
I've installed dualsense library and suggested host shield 2.0 library
After Paste and verify the example code, the result is this;
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTD.h:22,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:21,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/usbhid.h:145:9: error: 'USB' does not name a type
USB pUsb; // USB class instance pointer
^~~
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTD.h:22,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:21,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/usbhid.h:165:19: error: expected ')' before '' token
USBHID(USB pusb) : pUsb(pusb) {
~ ^~
)
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/usbhid.h:168:15: error: 'USB' does not name a type
const USB GetUsb() {
^~~
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:21,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTD.h:228:16: error: expected ')' before '' token
BTD(USB p);
~ ^~
)
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:21,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTD.h:539:9: error: 'USB' does not name a type
USB pUsb;
^~~
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:22,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h:222:20: error: expected ')' before '' token
HIDBoot(USB p, bool bRptProtoEnable = false);
~ ^~
)
In file included from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/BTHID.h:22,
from c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/PS5BT.h:21,
from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:4,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h:256:32: error: expected constructor, destructor, or type conversion before '(' token
HIDBoot<BOOT_PROTOCOL>::HIDBoot(USB p, bool bRptProtoEnable/ = false/) :
^
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h: In member function 'uint8_t HIDBoot<BOOT_PROTOCOL>::Init(uint8_t, uint8_t, bool)':
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h:299:33: error: 'pUsb' was not declared in this scope
AddressPool &addrPool = pUsb->GetAddressPool();
^~~~
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h: In member function 'uint8_t HIDBoot<BOOT_PROTOCOL>::Release()':
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h:565:9: error: 'pUsb' was not declared in this scope
pUsb->GetAddressPool().FreeAddress(bAddress);
^~~~
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h: In member function 'uint8_t HIDBoot<BOOT_PROTOCOL>::Poll()':
c:\Users\albes\Documents\Arduino\libraries\USB_Host_Shield_Library_2.0/hidboot.h:597:33: error: 'pUsb' was not declared in this scope
rcode = pUsb->inTransfer(bAddress, epInfo[epInterruptInIndex + i].epAddr, &read, buf);
^~~~
In file included from c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerBt.h:5,
from C:\Users\albes\AppData\Local\Temp.arduinoIDE-unsaved2024215-7660-1e0iqlm.6g6j\DualSenseControllerDemo\DualSenseControllerDemo.ino:45:
c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerCore.h: At global scope:
c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerCore.h:14:5: error: 'USB' does not name a type
USB usbPtr_ = nullptr;
^~~
c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerCore.h:56:16: error: expected ')' before '' token
USB* usbPtr,
^
)
c:\Users\albes\Documents\Arduino\libraries\DualSenseController\src/DualSenseControllerCore.h:55:37: note: to match this '('
explicit DualSenseControllerCore(
^
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered:
After some research I found out that the USB Host Shield Library 2.0, on which this library is based, unfortunately does not support the Arduino Nano ESP32 board. I tried to compile their example sketch USB Host Shield Library 2.0 > PS5USB and got the same error. Unfortunately there is not much I can do. Please ask the authors for making their library compatible with your board or try another ESP32 Board like this (This is no advertiesment)
I use Arduino NANO Esp32 Board
I've selected COM3 port from Arduino Ide
I've installed dualsense library and suggested host shield 2.0 library
After Paste and verify the example code, the result is this;
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered: