Pages: [1]   Go Down
Author Topic: Re: 4 bit LCD library little diffs  (Read 275 times)
0 Members and 1 Guest are viewing this topic.
Australia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 99
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So do your changes work?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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;
  }
  pulseEnablePin();
}

Sorry for the mistake (I deleted the wrong code)
« Last Edit: April 24, 2008, 02:01:24 am by vorxio » Logged

Pages: [1]   Go Up
Jump to: