Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Keyboard delay

2005-02-21 by Valerij Avrealij

Thanks to all for quick help. I'll try find my optimal delay.


> 0.001 sec or 1/1000 or One One-Thousands of a second
> 0.01 sec or 1/100 or One One-Hundreds of a second
> 0.1 sec or 1/10 or One One-Tenth of a second

> The theory is 
> "Find a value that does not work."
> "Find a value that does work."
> Then pick a value 1/2 way between the two. Does it work?
> Keep on dividing and testing until you get to a value, say 0.123, 
> that works. A value of 0.122 on occasion fails. Add 10% to it.
> 0.135 sec = 0.123 + 0.012 or 135/1000 or 
> delay_ms(135); //This seems to be a huge amount to me!
> It is better to be slow and correct than fast and wrong.
> Ten per cent is old engineering guess-work.
> Mike

-- 

 Valerij Avrealij

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.