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 Keyboard Led status codes #61

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds support for keyboard LED status
PJ789 authored Dec 26, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 8e2feda9eed7a272c32e11c68975452e2c462a84
8 changes: 8 additions & 0 deletions src/Keyboard.h
Original file line number Diff line number Diff line change
@@ -110,6 +110,13 @@
#define KEY_F23 0xFA
#define KEY_F24 0xFB

#define KEY_NUM_LOCK 0xDB
#define KEY_SCROLL_LOCK 0xCF

#define LED_CAPS_LOCK 0x02
#define LED_NUM_LOCK 0x01
#define LED_SCROLL_LOCK 0x04

// Supported keyboard layouts
extern const uint8_t KeyboardLayout_de_DE[];
extern const uint8_t KeyboardLayout_en_US[];
@@ -142,6 +149,7 @@ class Keyboard_ : public Print
size_t press(uint8_t k);
size_t release(uint8_t k);
void releaseAll(void);
bool getLedStatus(uint8_t led);
};
extern Keyboard_ Keyboard;