Hi there,
Trying to compile this "hello world" sketch from the arduino cookbook I get the message "expected initializer before '.' token".
I am newby in programming. Can somebody help me please?
/*
LiquidCrystal Library - Hello World
Demonstrates the use of a 16 × 2 LCD display.
*/
#include <LiquidCrystal.h> // include the library code
//constants for the number of rows and columns in the LCD
const int numRows = 2;
const int numCols = 16;
// initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
LiquidCrystal lcd.init()
LiquidCrystal lcd.begin(numCols, numRows);
LiquidCrystal lcd.print("hello, world!"); // Print a message to the LCD. }
}
void loop()
{
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
LiquidCrystal lcd.setCursor(0, 1);
// print the number of seconds since reset:
LiquidCrystal lcd.print((millis) / 1000);
}