Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for LED status #109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Danjovic
Copy link

@Danjovic Danjovic commented Mar 8, 2020

Added function to get keyboard LED status from host.
uchar getLEDs ()

Danjovic and others added 5 commits January 26, 2016 21:03
SendKeyStroke method now has a third parameter to allow the simulation
of pressing time (in milliseconds) that the key remains pressed until is
released.
void sendKeyStroke(byte keyStroke, byte modifiers, uint16_t
key_down_time);

If 'key_down_time' is zero then don't release the key, it should be done
manually by sendKeysStroke(0).

As 'zero' means forever, the minimum press time time is 1ms and the
maximum is 65535ms.

Examples
DigiKeyboard.sendKeyStroke(KEY_B);        // Send a B to host
DigiKeyboard.sendKeyStroke(KEY_A,0,300); // Send an A to host, takes
300ms until release

DigiKeyboard.sendKeyStroke(KEY_C,0,0);    //Send a C to host and keep it
pushed
DigiKeyboard.delay(2000);                 // wait 2 seconds
DigiKeyboard.sendKeyStroke(0);            // now release any key
pressed.
Modified USB report and reportBuffer size to allow simultaneous key presses.
Also extended HID key definition range and added Full HID keys code table
Simultaneous Keypress / Full HID Key codes table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant