Professional Documents
Culture Documents
Ngo Minh Khoi - 2000001242
Ngo Minh Khoi - 2000001242
Ngo Minh Khoi - 2000001242
usp=drivesdk
#include <Wire.h>
LiquidCrystal_I2C lcd(0X27,16,2); //Đặt địa chỉ LCD là 0X27 cho màn hình LCD 16×2
void setup()//
b();
c();
d();
e();
lcd.print("Vien Dao Tao"); //hiển thị một dòng ký tự bất kì lên màn hình
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Ho va ten:");
delay(1000);
lcd.setCursor(0,1);
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Lop:");
delay(1000);
lcd.setCursor(3,1);
lcd.print("20BAEV01");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("MSSV:");
delay(2000);
lcd.setCursor(2,1);
lcd.print("2000001242");
delay(2000);
void b() {
lcd.clear();
lcd.setCursor(5,0);
lcd.print("Chuyen Nganh");
delay(1000);
lcd.clear();
lcd.setCursor(3,0);
lcd.print("Cong Nghe");
delay(500);
lcd.setCursor(3,1);
delay(1000);
for( int x=0; x < 3; x++) {// vòng lặp được thực hiện đối với n kí tự
void c() {
lcd.clear();
lcd.print("SDT:");
delay(2000);
lcd.clear();
lcd.setCursor(8,0);
lcd.print("0941069383");
lcd.setCursor(10,1);
lcd.print("Que quan:");
delay(2000);
for(int x=0; x<16; x++) {// vòng lặp được thực hiện đối với n kí tự
delay(250);
}
}
void d() {
lcd.clear();
lcd.print("Bac Lieu");
delay(2000);
lcd.clear();
lcd.print("So Thich:");
lcd.setCursor(0,1);
lcd.print("Uong Caphe");
delay(2000);
for(int x=0; x<16; x++) {// vòng lặp được thực hiện đối với n kí tự
delay(250);
void e() {
lcd.clear();
lcd.print("Cong Nghe");
delay(3000);