-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed any reference to the micropy
- Loading branch information
1 parent
e0726ed
commit cd6df61
Showing
10 changed files
with
28 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
HIDMAN_DEVICE=/dev/input/by-id/usb-MicroPython_Pyboard_Virtual_Comm_Port_in_FS_Mode_3354375B3037-event-kbd | ||
HIDMAN_DEVICE=/dev/input/event7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
dev = HIDClient(address="tcp://localhost:6666") | ||
|
||
while True: | ||
print(dev.waitKeyPress()) | ||
print(dev.waitEvent()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import asyncio | ||
import evdev | ||
|
||
from evdev import InputDevice, categorize, ecodes | ||
|
||
selected_device = evdev.InputDevice('/dev/input/hidman0') | ||
print("Listening input events from {}".format(selected_device)) | ||
for event in selected_device.read_loop(): | ||
print(evdev.categorize(event)) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from hidman.core import HIDServer | ||
import evdev | ||
|
||
selected_device = evdev.InputDevice('/dev/input/hidman0') | ||
serv = HIDServer(device=selected_device, address="tcp://*:6666") | ||
serv.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__authors__ = 'Davide De Tommaso' | ||
__emails__ = '[email protected]' | ||
__license__ = 'MIT' | ||
__version__ = '0.1' | ||
__version__ = '0.2' | ||
__description__ = 'A Python based HID (Human Interface Device) events manager' | ||
__requirements__ = ['pytest>=6.2.4', 'evdev>=1.4.0', 'pyzmq>=22.1.0'] |