Skip to content

Commit

Permalink
usb/usb-device-keyboard: Add key release.
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghahs12 committed Jul 3, 2024
1 parent c7f50aa commit 5aac752
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions micropython/usb/usb-device-keyboard/usb/device/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def release_all(self):
if self.send_report(self._key_reports[0], 200):
return True
return False

Check failure on line 78 in micropython/usb/usb-device-keyboard/usb/device/keyboard.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W293)

micropython/usb/usb-device-keyboard/usb/device/keyboard.py:78:1: W293 Blank line contains whitespace
'''Example usage
k = KeyboardInterface()
usb.device.get().init(k, builtin_driver=True)
key = [4] #It clicks letter A (refer KeyCode class)
k.send_keys(key)
k.release_all()
k = KeyboardInterface()
usb.device.get().init(k, builtin_driver=True)
key = [4] #It clicks letter A (refer KeyCode class)
k.send_keys(key)
k.release_all()
'''


Expand Down

0 comments on commit 5aac752

Please sign in to comment.