Skip to content

Commit

Permalink
Mod properties of apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ddetommaso committed Apr 5, 2022
1 parent ef7c946 commit 919836b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions apps/hidclient.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/python3

import sys, getopt
from hidman.core import HIDClient

Expand All @@ -15,8 +17,8 @@ def main(argv):
client = HIDClient(address="tcp://%s:6666" % server_address)
while True:
print(client.waitKey())
print('hidclient.py -s <server_address>')
print('hidclient.py -s <server_address>')
sys.exit()

if __name__ == "__main__":
main(sys.argv[1:])
main(sys.argv[1:])
4 changes: 3 additions & 1 deletion apps/hiddevice.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/python3

import sys, getopt
from hidman.core import HIDDevice

Expand All @@ -16,7 +18,7 @@ def main(argv):
while True:
print(dev.waitKey())
dev.close()
print('hiddevice.py -d <device>')
print('hiddevice.py -d <device>')
sys.exit()

if __name__ == "__main__":
Expand Down
5 changes: 3 additions & 2 deletions apps/hidserver.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/python3

import sys, getopt
from hidman.core import HIDServer

Expand All @@ -14,9 +16,8 @@ def main(argv):
print('Device is: ', device)
serv = HIDServer(device=device, address="tcp://*:6666")
serv.run()
print('hidserver.py -d <device>')
print('hidserver.py -d <device>')
sys.exit()

if __name__ == "__main__":
main(sys.argv[1:])

2 changes: 2 additions & 0 deletions apps/latency_test.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/python3

import threading
import time
import statistics
Expand Down

0 comments on commit 919836b

Please sign in to comment.