Вы находитесь на странице: 1из 3

MICROPROCESSOR

EXPERIMENT NO. 10 : LCD Display


Connection:

Coding:
#include <LiquidCrystal.h>
int Contrast=70;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
analogWrite(6,Contrast);
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print(" Hello, World");
lcd.setCursor(0,1);
lcd.print("BSCPE - 5th Year");
delay(1000);

}
void loop() {
for (int positionCounter = 0; positionCounter < 14; positionCounter++) {
lcd.scrollDisplayLeft();
delay(500);
}
MICROPROCESSOR

for (int positionCounter = 0; positionCounter < 30; positionCounter++) {


lcd.scrollDisplayRight();
delay(500);
}
for (int positionCounter = 0; positionCounter < 16; positionCounter++) {
lcd.scrollDisplayLeft();
delay(150);
}
delay(5000);
MICROPROCESSOR

Вам также может понравиться