/************************************************************************
Test of the Pmod module
Description: Pmod_CLP
Message "Test module Pmod Digilent partner of Lextronic" will be show on LCD.
Material
- Arduino Uno
- Pmod CLP
**************************************************/
// Affectation of pins
#define En 7
#define Rs 6
#define D7 5
#define D6 4
#define D5 3
#define D4 2
#include<LiquidCrystal.h> // Add LiquidCrystal library
voidsetup()
{
LiquidCrystallcd(Rs, En, D4, D5, D6, D7); // creation of object LCD
lcd.begin(16, 2); // initialization of LCD object
}
Voidloop()
{
lcd.clear(); // Erase screen
lcd.print("Test module Pmod");
lcd.setCursor(4, 1); // cursor is on line 2 and columm 5
lcd.print("Digilent");
delay(3000);
lcd.clear();
lcd.setCursor(1, 0); // cursor is on line 1 and columm 2
lcd.print("partner of");
lcd.setCursor(3, 1); // cursor is on line 2 and columm 4
lcd.print("Lextronic");
delay(3000);
}
I have the following code and when I try to compile it I get error befor my void loop
the error is :exoected constructor , destructor , or type conversion before
I am new to Arduino please help me