Pete

Results 5 comments of Pete

Note this pull request has dependencies on another pull request in the ArduinoCore-avr HID library;- [ArduinoCore-avr pull request 446](https://github.com/arduino/ArduinoCore-avr/pull/446) ... and will not compile unless & until that dependency is...

Usage example;- ` if (Keyboard.getLedStatus(LED_CAPS_LOCK)) { Serial.print("Cap Lock on "); } if (Keyboard.getLedStatus(LED_SCROLL_LOCK)) { Serial.print("Scroll Lock on "); } if (Keyboard.getLedStatus(LED_NUM_LOCK)) { Serial.print("Num Lock on "); } Serial.println(); `

@60999 ... the code does work (I have a keyboard based on the changed code I use daily) but requires you to patch the Keyboard library AND ArduinoCore-avr HID library...

I can vouch for this patch too. It is working well here against current keyboard code. There is a dependency on the HID library that means I'm hesitating to offer...

Two pull requests created to incorporate this feature; 1. [Keyboard library pull request 61](https://github.com/arduino-libraries/Keyboard/pull/61) which depends upon 2. [ArduinoCore-avr library pull request 446](https://github.com/arduino/ArduinoCore-avr/pull/446) regards Pete