Author Topic: Syntax error in LiquidCrystal discription  (Read 3167 times)

0 Members and 1 Guest are viewing this topic.

Qynx

Syntax error in LiquidCrystal discription
« 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




barragan

Re: Syntax error in LiquidCrystal discription
« Reply #1 on: March 16, 2014, 03:16:54 PM »
Thank you!