I'm not sure it would work useing sleep in that way because it is only going to be called once regardless of how long you hold the button down. |
Exactly, that's what I was trying to say in my first post. The only buttons that has a "while-pressed" kind of function are the on screen Jog-buttons and they are a special case. The Sleep was an atempt to find a possible workaround for you...
Gerry,
Yep, the Wiki seems to be wrong on this. If you don't want to do it I can double check with Brian and then edit the Wiki.
There is a SetUserLED call that you can use to set or reset "your" LEDs.