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");
}
'아두이노' 카테고리의 다른 글
아두이노 - 스위치제어 (0) | 2016.09.06 |
---|---|
아두이노 - 전기신호출력 확인하기 (0) | 2016.09.06 |
아두이노 - 서보모터 (0) | 2016.08.30 |
아두이노 - 시리얼통신, LED밝기 조절 (0) | 2016.08.30 |
아두이노 - LED , 7-segment (0) | 2016.08.29 |