LCD1602 I2C (LCD1602) [D016]
https://www.youtube.com/watch?v=xj6KmHnGYqE
*GitHub : https://github.com/rdiot/rdiot-d016.git
* Contents
- Connect
GND ------------------ GND
VCC ------------------ 5V
SDA ------------------ A4
SCL ------------------ A5
: Mega(SDA-D20, SCL-D21), Leo(SDA-D2, SCL-D3)
- DataSheet : http://www.elecrow.com/download/LCD1602.pdf
- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x20 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(0, 1);
lcd.print("cursor 0,1");
}
'3) Actuator > LCD' 카테고리의 다른 글
LCD Keypad Shield Green (LCD1602) [D043] (0) | 2016.09.21 |
---|---|
LCD Keypad Shield (LCD1602) [D038] (0) | 2016.09.21 |
LCD2004 I2C Green (LCD2004A) [D046] (0) | 2016.09.21 |
LCD2004 I2C ( LCD2004A) [D017] (0) | 2016.09.21 |
LCD1602 (HD44780) [D002] (0) | 2016.09.21 |