Skip to content

Commit a6c1fcf

Browse files
committed
fix hid keyboard
1 parent a74341b commit a6c1fcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/HID/hid_keyboard/hid_keyboard.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void setup()
3030
{
3131
usb_hid.setPollInterval(2);
3232
usb_hid.setReportDescriptor(desc_hid_report, sizeof(desc_hid_report));
33-
usb_hid.setReportCallback(NULL, set_report_callback_t set_report);
33+
usb_hid.setReportCallback(NULL, hid_report_callback);
3434

3535
usb_hid.begin();
3636

@@ -83,7 +83,7 @@ void loop()
8383
// 6 is max keycode per report
8484
if (count == 6)
8585
{
86-
usb_hid.keyboadReport(0, 0, keycode);
86+
usb_hid.keyboardReport(0, 0, keycode);
8787
delay(2); // delay for report to send out
8888

8989
// reset report
@@ -100,7 +100,7 @@ void loop()
100100
// Send any remaining keys (not accumulated up to 6)
101101
if ( count )
102102
{
103-
usb_hid.keyboadReport(0, 0, keycode);
103+
usb_hid.keyboardReport(0, 0, keycode);
104104
}
105105

106106
// Send All-zero report to indicate there is no keys pressed

0 commit comments

Comments
 (0)