Hello, I tried to run helloworld sketch to see if my LCD ST7920 12864 graphic display works. This is the error from terminal.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed uploading: uploading error: exit status 1
and this is whole sketch:
#include "Wire.h"
#include "I2C_LCD12864.h"
I2C_LCD12864 lcd(&Wire);
void setup()
{
Wire.begin();
lcd.init();
lcd.clear(0, 0);
lcd.clearBuffer();
lcd.setFont(z_font_5x8);
lcd.drawText(1,50, "String ");
lcd.sendBuffer(); // push buffer data to CGRAM
lcd.setBL_on();
delay(2000);
}
void loop()
{
lcd.clear(0,0);
lcd.clearBuffer();
lcd.drawText(50,50, "HELLO WORD !");
lcd.sendBuffer();
return;
}
If you know what can it be I´ll be glad to hear your opinion.