Gonzalez Bernal Jaider Santiago 1005 Prac2

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 8

gonzalez bernal jaider santiago 1005 prac2.

doc

A
#include <LiquidCrystal.h>

LiquidCrystal lcd(7,6,5,4,3,2);

void setup() {

lcd.begin(16, 2);

lcd.print("ITIF75");

void loop() {

B
#include <LiquidCrystal.h>

LiquidCrystal lcd(7,6,5,4,3.2);

void setup() {

lcd.begin(16, 2);
}

void loop() {

lcd.print("ITIF75");

delay(500);

}
C
#include <LiquidCrystal.h>

LiquidCrystal lcd(7,6,5,4,3.2);

void setup() {

lcd.begin(16, 2);

lcd.print("hello, world!");

void loop() {

lcd.home();

lcd.print("XXX");

}
D
#include <LiquidCrystal.h>

LiquidCrystal lcd(7,6,5,4,3.2);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0, 0);

lcd.print("hello, world!");

void loop() {

}
// include the library code:

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

// set up the LCD's number of columns and rows:

lcd.begin(16, 2);

// Print a message to the LCD.


}

void loop() {

lcd.clear();

// set the cursor to column 0, line 1

// (note: line 1 is the second row, since counting begins with 0):

lcd.setCursor(0, 0);

lcd.print("ITIF75");

lcd.setCursor(5, 1);

lcd.print("");

// print the number of seconds since reset:

//lcd.print(millis() / 1000);

delay(500);

//rolagem para a esquerda

for(int posicao =0; posicao <3; posicao++){

lcd.scrollDisplayLeft();

delay(800);

//rolagem para a direita

for(int posicao =0; posicao <6; posicao++){

lcd.scrollDisplayRight();

delay(300);

}
}

You might also like