Commits

Luke Plant committed 3f382b5

Better timings

Comments (0)

Files changed (1)

                  trigger_until=0.2)
 
 
-def LongPress(pin, func, **kwargs):
+def LongPress(pin, func):
     return Press(pin=pin, func=func,
-                 trigger_after=1.5,
-                 **kwargs)
+                 trigger_after=1.5)
 
 
 def reset1():
 
 
     ShortPress(22, mpc_command('prev')),
-    LongPress(22, mpc_command('seek -10'),
-              repeat_after=0.8),
+    Press(pin=22, func=mpc_command('seek -10'),
+          trigger_after=0.5,
+          repeat_after=0.8),
 
     ShortPress(17, mpc_command('next')),
-    LongPress(17, mpc_command('seek +10'),
-              repeat_after=0.8),
+    Press(pin=17, func=mpc_command('seek +10'),
+          trigger_after=0.5,
+          repeat_after=0.8),
 ]