Загрузка...

Arduino Tutorial #4: How to use I2C Display with Arduino Uno.

Arduino Tutorial #4: How to use I2C Display with Arduino Uno.

---------------
CODE
---------------

NOTE: Please replace $ sign with open and close Angle brackets in the code below, because YOUTUBE won't let me include angle brackets in video's Description.
#include $LiquidCrystal_I2C.h$

//connections SDA---A4 and SCL---A5
//initialize the liquid crystal library
//the first parameter is the I2C address
//the second parameter is how many rows are on your screen
//the third parameter is how many columns are on your screen
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {

//initialize lcd screen
lcd.init();
// turn on the backlight
lcd.backlight();
}
void loop() {
//wait for a second
delay(1000);
lcd.clear();
// tell the screen to write on the top row
lcd.setCursor(0,0);
// tell the screen to write “hello, from” on the top row
lcd.print("Hello, From");
// tell the screen to write on the bottom row
lcd.setCursor(0,1);
// tell the screen to write “Arduino_uno” on the bottom row
// you can change whats in the quotes to be what you want it to be!
lcd.print("Arduino_UNO :-)");

}
Hope this tutorial was useful. Please hit LIKE for more Arduino tutorial and subscribe to stay tuned.

Видео Arduino Tutorial #4: How to use I2C Display with Arduino Uno. канала Arduino Projects
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять