[sdiy] dave smith *instruments*

Antti Huovilainen ajhuovil at cc.hut.fi
Mon Feb 1 18:57:56 CET 2010

On Mon, 1 Feb 2010, Tom Wiltshire wrote:

> So if someone turns the rotary encoder really quickly, you can't update 
> the LCD before the encoder has moved again. This leaves you having to 
> choose between letting the LCD update finish before you check the rotary 
> encoder again (e.g. ignore the encoder) or check the encoder but don't 
> always bother to update the LCD if it's going too fast (e.g. ignore the 
> LCD).

The correct way is to use a fastish (~500 Hz) timer interrupt to read the 
encoders and update the internal counters. Then the actual processing & 
display code can deal with them at whatever rate is appropriate. This way 
the worst that can happen is that some values are skipped over.


"No boom today. Boom tomorrow. There's always a boom tomorrow"
   -- Lt. Cmdr. Ivanova

More information about the Synth-diy mailing list