Keyboard library error

I have made a custom keypad with a Pro micro. After sometime the code seems to not work even though it worked a few months back. Heres the error message:

In file included from c:\users\okana\documents\arduino\libraries\hid-project\src\hid-apis\KeyboardAPI.h:29:0,
from c:\users\okana\documents\arduino\libraries\hid-project\src\hid-apis\defaultkeyboardapi.h:27,
from C:\Users\okana\Documents\Arduino\libraries\HID-Project\src/SingleReport/BootKeyboard.h:30,
from C:\Users\okana\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:50,
from C:\Users\okana\Desktop\F\arduino\proejcts\Complete_important\4x3_custom_keypad_macro\4x3_custom_keypad_macro.ino:11:
c:\users\okana\documents\arduino\libraries\hid-project\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\okana\Desktop\F\arduino\proejcts\Complete_important\4x3_custom_keypad_macro\4x3_custom_keypad_macro.ino:18:0:
C:\Users\okana\Documents\Arduino\libraries\Keyboard-1.0.4\src/Keyboard.h:130:7: error: redefinition of 'class Keyboard_'
class Keyboard_ : public Print
^~~~~~~~~
In file included from C:\Users\okana\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:51:0,
from C:\Users\okana\Desktop\F\arduino\proejcts\Complete_important\4x3_custom_keypad_macro\4x3_custom_keypad_macro.ino:11:
C:\Users\okana\Documents\Arduino\libraries\HID-Project\src/MultiReport/ImprovedKeyboard.h:33:7: note: previous definition of 'class Keyboard_'
class Keyboard_ : public DefaultKeyboardAPI
^~~~~~~~~

exit status 1

Compilation error: exit status 1

And the libraries I used:
https://playground.arduino.cc/Code/Keypad/

and <HID-Project.h>

It worked for months.... Plugging power to the controller and running no such error reports would come up. That is a compiler error, not an error from the controller.
You have made changes. Check what You've changed. You are not telling about any changes.

i have tweaked the code a little bit. it seems to be working now.

You seem to have two libraries installed named: "hid-project" and "HID-Project". That may be causing some confusion.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.