Wiring Forum

For Developers => Wiring Common Library Development => Topic started by: Qynx on March 13, 2014, 05:33:24 AM

Title: Syntax error in LiquidCrystal discription
Post by: Qynx on March 13, 2014, 05:33:24 AM
LiquidCrystal myDisplay = LiquidCrystal(0,1,2,2);

must be:

LiquidCrystal myDisplay(2, 3, 4, 5, 6, 7); // RS E DB4 DB5 DB6 DB7




Syntax   
display.print(data)
display.print(data, base)

must be:

myDisplay.print(data)
myDisplay.print(data, base)

http://www.wiring.org.co/reference/libraries/LiquidCrystal/LiquidCrystal_print_.html


(http://www.easycircuitboard.nl/media/ECB2_1024.jpg)
Title: Re: Syntax error in LiquidCrystal discription
Post by: barragan on March 16, 2014, 03:16:54 PM
Thank you!