This is my code
#include <LiquidCrystal.h>
LiquidCrystal lcd(1, 2, 4, 5, 6, 7);
void setup() {
lcd.begin(16,2);
}
void loop(){
lcd.print("Arduino");
delay(3000);
lcd.setCursor (2,1);
lcd.print("Jack");
delay(3000);
lcd.clear();
lcd.blink();
delay(4000);
lcd.setCursor(7,1);
delay(3000);
lcd.noBlink();
lcd.cursor();
delay(4000);
lcd.noCursor();
lcd.clear();
}
And heres the error
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\JackM\AppData\Local\Temp\ccdqBk9b.ltrans0.ltrans.o:(.rodata+0x6): undefined reference to `Print::write(unsigned char const*, unsigned int)'
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr6/crtatmega2560.o:(.init9+0x0): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I'm a fair bit of a newbie and i found things similar but not exact as to my problem and i'm not competent enough to work it out on my own yet and didn't want to hijack another thread, so any help would be very much appreciated! so what am i doing wrong?