lcd

作者: 初见破晓 | 来源:发表于2015-12-29 18:37 被阅读19次

how to connect lcd 1602 IIC to your arduino

http://www.lab-z.com/arduino-%E4%BD%BF%E7%94%A8i2c%E7%9A%841602-lcd/
example:
//YWROBOT

include <Wire.h>

include "LiquidCrystal_I2C.h"

LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
lcd.init(); // initialize the lcd

// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
lcd.setCursor(1,1);
lcd.print("www.lab-z.com");
}

void loop()
{
}

相关文章

网友评论

    本文标题:lcd

    本文链接:https://www.haomeiwen.com/subject/cwlihttx.html