Pommes wrote: 
> 
> Thing is: now i am at his place where parts like buttons and knobs are
> not readily available.

If you only have, say, a light switch available I guess you could make
it work with that, but you'd have to make it clear that the switch would
have to be toggled one way and then the other (closed then opened) in
quick succession for a single 'press'.  Since you only need the 'pause'
function, you could leave out the 'stop' function, or define the long
press to be so long (say 3000 milliseconds) that there's no danger of it
accidentally being triggered.  Or you could define the long press to be
the same 'pause' function.  Or you could just leave the long press
undefined, so it's never triggered.  Several options, but from memory I
believe that the event is only triggered once the pin is ungrounded - I
could be wrong there - so it would be important that the switch is
always toggled both ways, and left in the 'open' position.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=114075

_______________________________________________
diy mailing list
diy@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to