Skip to content

Commit

Permalink
Removed unnecessary sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ric2b committed Apr 23, 2016
1 parent 2098b78 commit aee546d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 50 deletions.
3 changes: 0 additions & 3 deletions Computer/driver_main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# External
import pyautogui # pip install pillow; pip install pyautogui
from time import sleep

# Internal
from controller_communication import HESInterface
from button_bindings import ButtonBindings
import settings

pyautogui.PAUSE = 0 # No delay when pressing/releasing keys
button_bindings = ButtonBindings()
Expand All @@ -20,4 +18,3 @@
if action == 'R': # released
pyautogui.keyUp(key)
key = None
sleep(settings.poll_delay)
2 changes: 0 additions & 2 deletions Computer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
forced_port = 'COM3'
baud_rate = 9600

poll_delay = 0.001 # seconds

button_names = {'0': 'select',
'1': 'start',
'2': 'up',
Expand Down
45 changes: 0 additions & 45 deletions driver.py

This file was deleted.

0 comments on commit aee546d

Please sign in to comment.