Re: [AVR-Chat] Digest Number 1221
2005-11-26 by Robert Diamond
On 26 Nov 2005 16:57:22 -0000, AVR-Chat@yahoogroups.com <AVR-Chat@yahoogroups.com> wrote: > Message: 1 > Date: Fri, 25 Nov 2005 13:50:35 -0800 > From: James Washer <washer@trlp.com> > Subject: Help debugging LCD display issues Coincidentally, I spent a few hours last night working with Peter Fleury's library, from a mega8 to a displaytech 204a. I found the following: 1. The #defines and #if at the top of lcd.h won't work - #if matches on the value of the macro, so #if display==displaytech162 will always match (undefined == undefined). I added #define displaytech162 1 #define displaytech164 2 ... and the macros matched. Also, the clock speed "#define XTAL" doesn't work quite right. I think "10E6" evaluates to (float) 10,000,000. Change it to 1000000 and the timing will work out correctly.