NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.38k stars 408 forks source link

Arduino IDE 2.0.4 - what does this mean #400

Open aadrians1 opened 1 year ago

aadrians1 commented 1 year ago

In file included from c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\hid-apis\KeyboardAPI.h:29:0, from c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\hid-apis\defaultkeyboardapi.h:27, from C:\Users\admin1\Documents\Arduino\libraries\HID-2.8.4\src/SingleReport/BootKeyboard.h:30, from C:\Users\admin1\Documents\Arduino\libraries\HID-2.8.4\src/HID-Project.h:50, from C:\Users\admin1\AppData\Local\Temp.arduinoIDE-unsaved2023017-8044-34nlyz.x4lmg\sketch_jan17a\sketch_jan17a.ino:2: c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\keyboardlayouts\improvedkeylayouts.h:54:21: note: #pragma message: Using default ASCII layout for keyboard modules

pragma message "Using default ASCII layout for keyboard modules"

                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\admin1\AppData\Local\Temp.arduinoIDE-unsaved2023017-8044-34nlyz.x4lmg\sketch_jan17a\sketch_jan17a.ino:1:0: C:\Users\admin1\AppData\Local\Arduino15\libraries\Keyboard\src/Keyboard.h:54:27: error: expected identifier before numeric constant

define KEY_RETURN 0xB0

                       ^

c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\keyboardlayouts\improvedkeylayouts.h:103:5: note: in expansion of macro 'KEY_RETURN' KEY_RETURN = 40, // Alias ^~~~~~ C:\Users\admin1\AppData\Local\Arduino15\libraries\Keyboard\src/Keyboard.h:54:27: error: expected '}' before numeric constant

define KEY_RETURN 0xB0

                       ^

c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\keyboardlayouts\improvedkeylayouts.h:103:5: note: in expansion of macro 'KEY_RETURN' KEY_RETURN = 40, // Alias ^~~~~~ C:\Users\admin1\AppData\Local\Arduino15\libraries\Keyboard\src/Keyboard.h:54:27: error: expected unqualified-id before numeric constant

define KEY_RETURN 0xB0

                       ^

c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\keyboardlayouts\improvedkeylayouts.h:103:5: note: in expansion of macro 'KEY_RETURN' KEY_RETURN = 40, // Alias ^~~~~~ In file included from c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\hid-apis\KeyboardAPI.h:29:0, from c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\hid-apis\defaultkeyboardapi.h:27, from C:\Users\admin1\Documents\Arduino\libraries\HID-2.8.4\src/SingleReport/BootKeyboard.h:30, from C:\Users\admin1\Documents\Arduino\libraries\HID-2.8.4\src/HID-Project.h:50, from C:\Users\admin1\AppData\Local\Temp.arduinoIDE-unsaved2023017-8044-34nlyz.x4lmg\sketch_jan17a\sketch_jan17a.ino:2: c:\users\admin1\documents\arduino\libraries\hid-2.8.4\src\keyboardlayouts\improvedkeylayouts.h:521:1: error: expected declaration before '}' token };

nexposito commented 1 year ago

I got the same error, could you figure it out what is the problem?

NicoHood commented 1 year ago

See https://github.com/NicoHood/HID/issues/390

Eliaszszsz commented 8 months ago

FOUND THE FIX!!!!! its soooo easy. all you have to do is use the HID-project library at the 2.8.4 version. Hope i helped1