Go Down

Topic: Re: 4 bit LCD library little diffs (Read 552 times) previous topic - next topic



Apr 23, 2008, 09:11 pm Last Edit: Apr 24, 2008, 09:01 am by vorxio Reason: 1
Yeap ....

With a REAL LCD I found that the original code is correct ...

Enable line must stay HIGH for 230 ns in order to let the data be stored.
The only valid and tested modification to the library is this one:

Code: [Select]
void LCD4Bit::pushNibble(int value){
 //int val_nibble= value & 0x0F;  <<< clean the value.  (this is really unnecessary)
 for (int i=DB[0]; i <= DB[3]; i++) {
   digitalWrite(i,value & 01);
   value >>= 1;

Sorry for the mistake (I deleted the wrong code)

Go Up