정보나눔

오픈소스하드웨어 프로젝트에 대한 다양한 정보를 나누는 공간입니다.

lcd에 문자 출력하기 오류
pcj1026 | 2017-02-17

#include <LiquidCrystal.h>

LiquidCrystal lcd(3, 4, 10, 11, 12, 13);
void setup() {      
  lcd.begin(16,2);
  lcd.clear();
}
void loop() {
  int value = random(0,3);
  if (value == 0) {
    lcd.setCursor(0,0);
    lcd.print(" KocoaFab.cc ");
  }
  else if (value == 1) {
    lcd.setCursor(0,1);
    lcd.print(" Hello World!! ");
  }
  else if(value == 2) {
    lcd.setCursor(0,0);
    lcd.print(" KocoaFab.cc ");
    lcd.setCursor(0,1);
    lcd.print(" Hello World!! ");
    }
    delay(1000);
    lcd.clear();
}

 

 

 

 

아두이노:1.8.0 (Windows 7), 보드:"Arduino/Genuino Uno"

스케치는 프로그램 저장 공간 2366 바이트(7%)를 사용. 최대 32256 바이트.
전역 변수는 동적 메모리 75바이트(3%)를 사용, 1973바이트의 지역변수가 남음.  최대는 2048 바이트.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x22
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x22
보드에 업로딩중에 문제 발생. 다음을  참고하세요. http://www.arduino.cc/en/Guide/Troubleshooting#upload
잘못된 라이브러리가 C:\Users\admin\Documents\Arduino\libraries\sketch_jan03a에서 발견: C:\Users\admin\Documents\Arduino\libraries\sketch_jan03a
잘못된 라이브러리가 C:\Users\admin\Documents\Arduino\libraries\sketch_jan03a에서 발견: C:\Users\admin\Documents\Arduino\libraries\sketch_jan03a

이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
활성화하여 더 많은 정보를
보이게 할 수 있습니다.

 

 

 

이런오류가 뜨는데 왜그런거죠? 아무것도 모르는 상태에서 시작한거라 잘 모르겠습니다

프로필사진

수박쨈 2017-02-20 08:56:52

툴 - 포트 가셔서 아두이노에 맞는 포트가 설정되었는지 확인해보세요.

이전글   |    라즈파이와 안드로이드 연동 2017-02-17
다음글   |    오렌지보드 wifi로 웹소켓 연결 구현이 가능한가요? ... 2017-02-18