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

Implement hid_listen subcommand #11923

Closed
wants to merge 9 commits into from
Closed
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
Prev Previous commit
Next Next commit
Tidy up slightly for review
  • Loading branch information
zvecr committed Feb 15, 2021
commit 476e2f82faf8e11737b62e565996146bbb472d6f
7 changes: 4 additions & 3 deletions lib/python/qmk/cli/console.py
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
cli implementation of https://www.pjrc.com/teensy/hid_listen.html

State machine is implemented as follows:

+-+
+-+ More Data?
| +------------+
@@ -11,10 +12,10 @@
| | | | | | |
| Search +----->+ Connect +------>+ Read +<----+
| | | | | |
+-----^-------+ +-----------------+ +------+-----+
| |
+-----+-------+ +-----------------+ +------+-----+
^ |
| Disconnect/Error? |
+-----------------------------------------------+
Disconnect/Error
"""
import hid
import asyncio