> Thanks. I'll probably keep the count at 255, but code it so it doesn't
> overflow, or probably have it so
> that when the timer reaches 2 seconds, it will automatically enter SETUP
> MODE. Thats probably better anyways, this way
> the user doesn't have to time it. Just hold the button until the mode
> changes.
>
> Dan
>
> > Pressing the button for 1.9 seconds will be seen as a short
> > push, as will
> > 2.56 seconds as you overflow the char used for count. You're
> > asking your
> > user to accurately time the button press to within half a
> > second, lots of
> > people can't. You may want to use a 16 bit variable for count.
> >
> > Another method: when you see the button pushed, delay two
> > seconds or so.
> > If the button is not still pressed, it's a short push; if it
> > is, it's a
> > long push. Maybe blink an LED or beep something to let the user know
> > he/she can release the button at that point, then wait until they do
> > release it before moving on.
> >
> > Dale
> > --
> > It's a thankless job, but I've got a lot of Karma to burn off.
> >
> > --
> >
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
> > email
spamBeGonelistservspamBeGone
mitvma.mit.edu with SET PICList DIGEST in the body