So I installed the driver, and now it’ll recognize the board. However, when I install the library, this
happens: Arduino: 1.8.13 (Mac OS X), Board: “Arduino Nano, ATmega168”
Specified folder/zip file does not contain a valid library
Guess ill try to install it manually.
(edit: I found out why the whole thing wasn’t working: I was installing the wrong library, and I didnt install the driver for the Keypad. Classic PEBKAC issue. )
(edit: Arduino: 1.8.13 (Mac OS X), Board: “Arduino Nano, ATmega168”
In file included from /Users/kids/Downloads/Keypad-master/clockworkpi_keypad/clockworkpi_keypad.ino:4:0:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h: In constructor ‘UsbKeyboardDevice::UsbKeyboardDevice()’:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:152:5: error: ‘usbSetInterrupt’ was not declared in this scope
usbSetInterrupt(reportBuffer, sizeof(reportBuffer));
^~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:152:5: note: suggested alternative: ‘detachInterrupt’
usbSetInterrupt(reportBuffer, sizeof(reportBuffer));
^~~~~~~~~~~~~~~
detachInterrupt
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h: In member function ‘void UsbKeyboardDevice::sendKeyStroke(byte, byte)’:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:165:13: error: ‘usbInterruptIsReady’ was not declared in this scope
while (!usbInterruptIsReady()) {
^~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:165:13: note: suggested alternative: ‘noInterrupts’
while (!usbInterruptIsReady()) {
^~~~~~~~~~~~~~~~~~~
noInterrupts
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:176:5: error: ‘usbSetInterrupt’ was not declared in this scope
usbSetInterrupt(reportBuffer, sizeof(reportBuffer));
^~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:176:5: note: suggested alternative: ‘detachInterrupt’
usbSetInterrupt(reportBuffer, sizeof(reportBuffer));
^~~~~~~~~~~~~~~
detachInterrupt
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:178:13: error: ‘usbInterruptIsReady’ was not declared in this scope
while (!usbInterruptIsReady()) {
^~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:178:13: note: suggested alternative: ‘noInterrupts’
while (!usbInterruptIsReady()) {
^~~~~~~~~~~~~~~~~~~
noInterrupts
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h: In member function ‘size_t UsbKeyboardDevice::press(uint8_t)’:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:213:2: error: ‘usbSetInterrupt’ was not declared in this scope
usbSetInterrupt((uint8_t*)&_keyReport, sizeof(_keyReport));
^~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:213:2: note: suggested alternative: ‘detachInterrupt’
usbSetInterrupt((uint8_t*)&_keyReport, sizeof(_keyReport));
^~~~~~~~~~~~~~~
detachInterrupt
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h: In member function ‘size_t UsbKeyboardDevice::release(uint8_t)’:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:230:2: error: ‘usbSetInterrupt’ was not declared in this scope
usbSetInterrupt((uint8_t*)&_keyReport, sizeof(_keyReport));
^~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:230:2: note: suggested alternative: ‘detachInterrupt’
usbSetInterrupt((uint8_t*)&_keyReport, sizeof(_keyReport));
^~~~~~~~~~~~~~~
detachInterrupt
In file included from /Users/kids/Downloads/Keypad-master/clockworkpi_keypad/clockworkpi_keypad.ino:8:0:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/asciimap.h: At global scope:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/asciimap.h:147:54: error: ‘keyboard_report_t’ has not been declared
ASCIIMAPPUBLIC uint8_t asciitokeyreport(uint8_t key, keyboard_report_t *report);
^~~~~~~~~~~~~~~~~
In file included from /Users/kids/Downloads/Keypad-master/clockworkpi_keypad/clockworkpi_keypad.ino:16:0:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:123:3: error: conflicting declaration ‘typedef struct KeyReport KeyReport’
} KeyReport;
^~~~~~~~~
In file included from /Users/kids/Downloads/Keypad-master/clockworkpi_keypad/clockworkpi_keypad.ino:4:0:
/Users/kids/Documents/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:62:3: note: previous declaration as ‘typedef struct KeyReport KeyReport’
} KeyReport;
^~~~~~~~~
In file included from /Users/kids/Downloads/Keypad-master/clockworkpi_keypad/clockworkpi_keypad.ino:16:0:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:158:22: error: ‘keyboard_report_t’ has not been declared
void sendKeyReport(keyboard_report_t *report) {
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:236:3: error: ‘keyboard_report_t’ does not name a type
keyboard_report_t getKeyReportFromChar(byte symbol) {
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:257:24: error: ‘mouse_report_t’ has not been declared
void sendMouseReport(mouse_report_t *report) {
^~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:267:3: error: ‘mouse_report_t’ does not name a type
mouse_report_t getMouseReport(int8_t deltaX, int8_t deltaY, uint8_t buttons) {
^~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In constructor ‘VUSBHIDKeyboardMouseDevice::VUSBHIDKeyboardMouseDevice()’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:130:5: error: ‘hidInit’ was not declared in this scope
hidInit();
^~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:130:5: note: suggested alternative: ‘usbInit’
hidInit();
^~~~~~~
usbInit
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::update(uint8_t)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:150:5: error: ‘hidPoll’ was not declared in this scope
hidPoll(&time_since_lastcall_in_four_ms_units);
^~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:150:5: note: suggested alternative: ‘usbPoll’
hidPoll(&time_since_lastcall_in_four_ms_units);
^~~~~~~
usbPoll
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendKeyReport(int*)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:159:12: error: ‘keyboard_report_dirty’ was not declared in this scope
while (keyboard_report_dirty) {
^~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:163:13: error: ‘current_keyboard_report’ was not declared in this scope
memcpy(¤t_keyboard_report, report, sizeof(keyboard_report_t));
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:163:53: error: ‘keyboard_report_t’ was not declared in this scope
memcpy(¤t_keyboard_report, report, sizeof(keyboard_report_t));
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:164:5: error: ‘keyboard_report_dirty’ was not declared in this scope
keyboard_report_dirty|=_BV(1);
^~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendKeyRelease()’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:168:5: error: ‘keyboard_report_t’ was not declared in this scope
keyboard_report_t report;
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:169:28: error: ‘report’ was not declared in this scope
keyboard_report_clear(&report);
^~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:169:28: note: suggested alternative: ‘remove’
keyboard_report_clear(&report);
^~~~~~
remove
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:169:5: error: ‘keyboard_report_clear’ was not declared in this scope
keyboard_report_clear(&report);
^~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:170:5: error: ‘keyboard_report_setNoEvent’ was not declared in this scope
keyboard_report_setNoEvent(&report);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendKeyStroke(byte, byte)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:174:5: error: ‘keyboard_report_t’ was not declared in this scope
keyboard_report_t report;
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:175:28: error: ‘report’ was not declared in this scope
keyboard_report_clear(&report);
^~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:175:28: note: suggested alternative: ‘remove’
keyboard_report_clear(&report);
^~~~~~
remove
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:175:5: error: ‘keyboard_report_clear’ was not declared in this scope
keyboard_report_clear(&report);
^~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘size_t VUSBHIDKeyboardMouseDevice::press(uint8_t)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:193:27: error: ‘current_keyboard_report’ was not declared in this scope
for(j = 0; j < sizeof(current_keyboard_report.keycode); j++) {
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:198:21: error: ‘current_keyboard_report’ was not declared in this scope
if (j == sizeof(current_keyboard_report.keycode)) {
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:210:20: error: ‘current_keyboard_report’ was not declared in this scope
sendKeyReport(¤t_keyboard_report);
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘size_t VUSBHIDKeyboardMouseDevice::release(uint8_t)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:222:28: error: ‘current_keyboard_report’ was not declared in this scope
for (i = 0; i < sizeof(current_keyboard_report.keycode); i++) {
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:227:20: error: ‘current_keyboard_report’ was not declared in this scope
sendKeyReport(¤t_keyboard_report);
^~~~~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendKey(byte)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:243:5: error: ‘keyboard_report_t’ was not declared in this scope
keyboard_report_t report = getKeyReportFromChar(symbol);
^~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:244:20: error: ‘report’ was not declared in this scope
sendKeyReport(&report);
^~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:244:20: note: suggested alternative: ‘remove’
sendKeyReport(&report);
^~~~~~
remove
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendMouseReport(int*)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:258:12: error: ‘mouse_report_dirty’ was not declared in this scope
while (mouse_report_dirty) {
^~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:262:13: error: ‘current_mouse_report’ was not declared in this scope
memcpy(¤t_mouse_report, report, sizeof(mouse_report_t));
^~~~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:262:13: note: suggested alternative: ‘sendMouseReport’
memcpy(¤t_mouse_report, report, sizeof(mouse_report_t));
^~~~~~~~~~~~~~~~~~~~
sendMouseReport
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:262:50: error: ‘mouse_report_t’ was not declared in this scope
memcpy(¤t_mouse_report, report, sizeof(mouse_report_t));
^~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:263:5: error: ‘mouse_report_dirty’ was not declared in this scope
mouse_report_dirty|=_BV(1);
^~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendMouseIdle()’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:276:5: error: ‘mouse_report_t’ was not declared in this scope
mouse_report_t report;
^~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:277:25: error: ‘report’ was not declared in this scope
mouse_report_clear(&report);
^~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:277:25: note: suggested alternative: ‘remove’
mouse_report_clear(&report);
^~~~~~
remove
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:277:5: error: ‘mouse_report_clear’ was not declared in this scope
mouse_report_clear(&report);
^~~~~~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h: In member function ‘void VUSBHIDKeyboardMouseDevice::sendMouseEvent(int8_t, int8_t, uint8_t)’:
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:282:7: error: ‘mouse_report_t’ was not declared in this scope
mouse_report_t report = getMouseReport(deltaX, deltaY, buttons);
^~~~~~~~~~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:283:24: error: ‘report’ was not declared in this scope
sendMouseReport(&report);
^~~~~~
/Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse/VUSBHIDKeyboardMouse.h:283:24: note: suggested alternative: ‘remove’
sendMouseReport(&report);
^~~~~~
remove
Multiple libraries were found for “oddebug.h”
Used: /Users/kids/Documents/Arduino/libraries/UsbKeyboard
Not used: /Users/kids/Documents/Arduino/libraries/VUSBHIDKeyboardMouse
exit status 1
Error compiling for board Arduino Nano.)