Skip to content
Merged
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
3 changes: 3 additions & 0 deletions adafruit_hid/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def led_on(self, led_code):
from adafruit_hid.keycode import Keycode
import time

# Initialize Keybaord
kbd = Keyboard(usb_hid.devices)

# Press and release CapsLock.
kbd.press(Keycode.CAPS_LOCK)
time.sleep(.09)
Expand Down