User manual
055
056 char txt[6] = {"HALLO"};
057 for(i = 0; i < 5; i++)
058 {
059 lcd.print(txt[i]);
060 delay(500);
061 }
062
063 lcd.noCursor();
064 delay(2000);
065
066
067 // Scroll LCD
068 lcd.clear();
069 lcd.noBlink();
070 lcd.setCursor(0, 0);
071 lcd.print("scroll LCD");
072 delay(1000);
073 lcd.setCursor(0, 0);
074
075 for(i = 0; i < 16; i++)
076 {
077 lcd.scrollDisplayLeft();
078 lcd.setCursor(0, 0);
079 lcd.print("FRANZIS ARDUINO IS MEGA GREAT!");
080 delay(350);
081 }
082
083 delay(1500);
084
085 for(i = 0; i < 16; i++)
086 {
087 lcd.scrolldisplayRight();
088 lcd.setCursor(0, 0);
089 lcd.print("FRANZIS ARDUINO IS MEGA GREAT!");
090 delay(350);
091 }
092
093 delay(1500);
094 }
What is new is that we indicate the pin for the backlighting
with
#define backlight
. This is a preprocessor command that will
replace all names occurring in the source code with the des-
ignation Backlight by the value 9. This way, you can perform
changes to parameters very quickly without having to search the
entire source code.