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

TrinketKeyboard.getLEDstate() #3

Open
Ivoah opened this issue Oct 1, 2014 · 2 comments
Open

TrinketKeyboard.getLEDstate() #3

Ivoah opened this issue Oct 1, 2014 · 2 comments

Comments

@Ivoah
Copy link

Ivoah commented Oct 1, 2014

what exactly does TrinketKeyboard.getLEDstate() return?

@maujabur
Copy link

it returns the combination of

#define KB_LED_NUM 0x01
#define KB_LED_CAPS 0x02
#define KB_LED_SCROLL 0x04

you can check it this way, for example

digitalWrite(LED_CAPS, (TrinketKeyboard.getLEDstate()&KB_LED_CAPS)?HIGH:LOW);

@ElectricRCAircraftGuy
Copy link

great answer; this issue should be closed.

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

No branches or pull requests

3 participants