arduino / arduino/Arduino

HID library does not support callbacks

Open
#6,390 5 comments 0 reactions 0 assignees View on GitHub
feature request Library: HID
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

HID should support receiving reports back from the host, at least in a minimal fashion. There's a sketch of what the code might be in the HID library, but it's commented out and not very well fleshed out. It'd be nice if it was at least good enough to handle keyboard LED messages.

https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/HID/src/HID.cpp

Contributor guide

Open the contributing guide

Research direction

Start with hardware/arduino/avr/libraries/HID/src/HID.cpp and inspect the commented-out callback sketch. Trace how the HID library currently handles reports, then define the minimal host-report path needed for keyboard LED messages. Done means the library can receive and handle those reports without requiring broader HID support.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.