아두이노
아두이노 - LCD
보로로롬
2016. 9. 1. 10:40
LCD화면 켜기!!
아래와 같이 세팅을 해주세요!!
흑색선은 -
적색선은 + 입니다!
소스입니다.
#include <LiquidCrystal.h>
//초기화를 위한 기본적인 인터페이스 핀 리스트
LiquidCrystal lcd (3, 4, 10, 11, 12, 13);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2); //가로 16칸, 세로 2칸
lcd.clear();
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,0);
lcd.print("Hello arduino");
lcd.setCursor(0,1);
lcd.print("welcome to hell");
}