Re: Using menu with rotary encoder
Ethan Dicks <[email protected]> Wed, 15 Feb 2012 14:50:03 -0500
| Newsgroups | gmane.comp.sysutils.lcdproc |
|---|---|
| Message-ID | <CAALmimmVc5es77hk9jTZW8jnipXw-5TEkfi2jZBbOFYEMZ+bCw@mail.gmail.com> |
Hi, Markus, On Wed, Feb 15, 2012 at 2:11 PM, Markus Dolze <[email protected]> wrote: > On 15.02.2012 17:16, Ethan Dicks wrote: >> Having gone back and read the thread from 2006, have you considered >> having the AVR monitor the timing between encoder button presses, >> and if it's over 1 second, send back an escape key event? Don't make >> LCDd worry about the timing, let the AVR handle it. > > This sounds like a simple yet effective solution. To admit, I didn't > thought of that. Happy to help. It might be easier to implement if the switch is attached to an interrupt input pin (if you aren't using them for quadrature decoding). >> Can you provide a pointer to your AVR project? > > Will do, but it needs some cleanup before. Basically I put together some > existing libraries (Peter Fleury's LCD and UART libraries, the rotary > encoder stuff was from some other site) and only a few lines of own code... Sure. I look forward to seeing it all together. > That's a good point. Actually a number of 'projects' supported by > LCDproc have gone into the attic of time. One may be able to recover > information from The Internet Archive, that worked 95% times I tried. I've had some success with that too, but it's frustrating when you come up empty. > However, I don't like to distribute hardware project stuff with LCDproc > itself as pulling in code actively developed externally will be quite a > task to handle. We already have hardware related code in the tree which > only a few people are aware of (i.e. docs/Seetron/). > > Putting a static archive copy on our web page may be an option. As long as we have an option, I'm fine with it. The exact implementation is less important to me. >> I think rotary encoders are cool and we should support them... >> We should also support additional types of DIY hardware as well. > > Yes, but there are some exceptions. For example will I not add another > AVR project as we already have some of them. And for the same reason I > made my rotary encoder use the LoS-Panel protocol. I remember seeing the LoS-Panel when that page was new (I happen to have a few ATtiny2313 chips from my earliest purchase from Adafuit, of an early-model persistence-of-vision LED blinker). Around that time, I started building a generic ATtiny2313 backpack board, but I don't think I ever finished it. Is your project using a newer chip, or will all of your code fit in something that small? Cheers, -ethan