You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make a program that checks if the caps lock is off, then if it is it turns caps lock on. But I can't see the output of getLEDstate() and it seems to not be working. is it that I am on Mac?
I tired this: digitalWrite(LED_CAPS, (TrinketKeyboard.getLEDstate()&KB_LED_CAPS)?HIGH:LOW);
but that doesn't do anything regardless if it is on or not.
does anyone know how to check the state and turn on the caps lock via code?
The text was updated successfully, but these errors were encountered:
The LED state won't account for what happened before the USB connected, i.e. Caps/num/scroll lock must be toggled after the complete connection otherwise you won't get the state. As for how to send the keypress, that I'm not sure of either.
I want to make a program that checks if the caps lock is off, then if it is it turns caps lock on. But I can't see the output of getLEDstate() and it seems to not be working. is it that I am on Mac?
I tired this: digitalWrite(LED_CAPS, (TrinketKeyboard.getLEDstate()&KB_LED_CAPS)?HIGH:LOW);
but that doesn't do anything regardless if it is on or not.
does anyone know how to check the state and turn on the caps lock via code?
The text was updated successfully, but these errors were encountered: