I installed this library:
My intention is to use the XBOX Wireless controller with a usb shield on arduino.
Opened the sample sketch in Arduino software, and button "Verify". The result is this:
In file included from /home/user/sketchbook/libraries/USBShield2/xboxEnums.h:21:0,
from /home/user/sketchbook/libraries/USBShield2/XBOXRECV.h:24,
from XBOXRECV.ino:1:
/home/user/sketchbook/libraries/USBShield2/controllerEnums.h:191:8: erro: ‘constexpr’ não nomeia um tipo
inline constexpr int8_t ButtonIndex(ButtonEnum key) {
^
/home/user/sketchbook/libraries/USBShield2/controllerEnums.h:191:8: nota: C++11 ‘constexpr’ somente disponível com -std=c++11 ou -std=gnu++11
In file included from /home/user/sketchbook/libraries/USBShield2/XBOXRECV.h:24:0,
from XBOXRECV.ino:1:
/home/user/sketchbook/libraries/USBShield2/xboxEnums.h: Na função ‘int8_t getButtonIndexXbox(ButtonEnum)’:
/home/user/sketchbook/libraries/USBShield2/xboxEnums.h:66:43: erro: ‘ButtonIndex’ was not declared in this scope
const int8_t index = ButtonIndex(b);
Is this error a bug in the new library version, or is my error? How can i solve this?
Thanks for attention.