copied this code from http://www.jeremyblum.com/2011/07/31/tutorial-13-for-arduino-liquid-crystal-displays/ but when i try to compile i get a error at void set up {}( function definition dose not declare parameters) i highlighted the part that gets this error ... but i can figure out whats wrong ...
/*
*RS: Pin 2
*EN: Pin 3
*D4: Pin 4
*D5: Pin 5
*D6: Pin 6
*D7: Pin 7
*/
//Include the Lcd Library
#include <LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
//Create Characters
byte p20[8] = {
B100000,
B100000,
B100000,
B100000,
B100000,
B100000,
B100000,
};
byte p40[8] = {
B11000,
B11000,
B11000,
B11000,
B11000,
B11000,
B11000,
};
byte p60[8] = {
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
};
byte p80[8] = {
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
};
byte p100[8] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
};
void setup {} ................................ function definition dose not declare parameters
{
lcd.begin(16,2)
lcd.print("John's Display");
lcd.createChar(0, p20);
lcd.createChar(0, p40);
lcd.createChar(0, p60);
lcd.createChar(0, p80);
lcd.createChar(0, p100);
}
void loop {}
{
lcd.setCursor(0,1);
lcd.print(" ");
for (int i = 0; i<16; 1++)
{
for (int j = 0; j<5; j++)
{
lcd.setCursor(1,1);
lcd.write(j);
delay(100);
}
}