BASIC4MCU | 질문게시판 | 아두이노 LCD 질문드립니다...
페이지 정보
작성자 졸작캐리좀요 작성일2019-05-15 02:27 조회8,212회 댓글3건본문
디바이스마트에서 LCD를 구매해서 아두이노로 작동을 확인하려고 했는데 생각보다 잘 안되네요.. ㅠㅠ
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(20, 3);
// Print a message to the LCD.
lcd.print("hello, world!");
}void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis() / 1000);
}
이렇게 코딩해서 돌려봤는데 전원만 켜지네요... 혹시 이 제품과 호환이 안되거나 다른 방법으로 해야하는 건지 여쭤보고 싶습니다..
LCD 구매한 사이트입니다.. http://www.devicemart.co.kr/goods/view?no=1321927
댓글 3
조회수 8,212master님의 댓글
master 작성일
LCD 모듈 금액이 비싼 것 같군요
구입한 LCD는 그래픽 타입이고
작성한 소스는 캐릭터 타입이라서 맞지 않습니다.
그래픽 타입도 두 종류가 있으므로 잘 찾아서 구동하셔야합니다.
master님의 댓글
master 작성일졸작캐리좀요님의 댓글
졸작캐리좀요 작성일
정말 감사드립니다.
답변해주신 링크 참고해서 공부해보겠습니다!!