Pages: [1]   Go Down
Author Topic: Error in LCD 'Hello World' example  (Read 1006 times)
0 Members and 1 Guest are viewing this topic.
Western New York, USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 4327
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The 'Hello World' example associated with the LiquidCrystal Library in the Playground has been corrupted and should be fixed up by someone who knows what they are doing (which would not include me).  Here's a link to the page I am refering to: http://arduino.cc/en/Tutorial/LiquidCrystal

There are two major problems:
(1)  Somewhere along the line the correct example code has been replaced by a copy of the example from SetCursor.

(2)  The setup() functions starts with "lcd.begin(numRows, numCols);" which does not agree with the reference information which shows: "lcd.begin(cols, rows) ".

The examples still work because currently (as best I can tell) LiquidCrystal.cpp does not use 'cols' and only checks to see if 'rows' > 1.  

Incidently all of the other examples that use lcd.begin implement it correctly with "lcd.begin(16, 2);".  It's only 'SetCursor' and this messed up 'Hello World' that are backwards.

Don
Logged

New York, NY, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Howdy. I don't check PMs often, so email me!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Examples are all up to date now, thanks.  As for the changes in the library, patches are welcome, best way to submit them is via the google code issue tracking database at http://code.google.com/p/arduino/issues/list.
Logged

Pages: [1]   Go Up
Jump to: