This is another example using the LCD4484 shield, this time put a character on the screen and then move it across the screen. Basic stuff but for beginners playing with shields like this, coming up with various code examples is the basics of getting started with ARduino development
Code
#include “LCD4884.h”
void setup()
{
//initialise and clear
lcd.LCD_init();
lcd.LCD_clear();
}
void loop()
{
char line=0, pos=0;
//clear the LCD
lcd.LCD_clear();
//pause for 1 second
delay(1000);
//go to position 0,0
lcd.LCD_set_XY(pos,line);
//loop until x position is 55
while (pos<=55)
{
//move to LCD position
lcd.LCD_set_XY(pos,line);
//write a character to LCD
lcd.LCD_prop_write_char(‘a’, MENU_NORMAL);
//increment by 1
pos++;
//pause for 100 milliseconds
delay(100);
}
//1 second delay
delay(1000);
}
Links
Amazon US link – SainSmart Graphic LCD4884 Shield for Arduino
Amazon UK link – ATmega2560 + Graphic LCD4884 Shield for Arduino
Links