안녕하세요 에듀이노 개발팀입니다.
해당 에러내용은 lcd라는 표기를 1cd라고 표기해서 생기는 문제입니다.
1cd를 lcd(LCD)로 바꿔 테스트를 진행해 주시기 바랍니다.
감사합니다.
[ Original Message ]
미세먼지 키트를 연결하고 LCD 예제코드를 매뉴얼대로 입력헀는데.. 에러가 나옵니다. 왜 그런지 알 수 있을까요?
(제가 배선작업을 잘못한 것일까요? ㅠㅠ)
아! 그리고 한가지 더요.. 보내주신 매뉴얼대로 조립을 하다보니 조립이미지의 배선도와 사진상의 배선도가 다른데 어떻게 조립해야 하는건지 헷갈리네요
초보 입문자라 도움이 필요합니다..
아두이노:1.8.12 (Windows 10), 보드:"Arduino Uno"
sketch_jun09a:3:19: error: expected unqualified-id before numeric constant
LiquidCrystal_I2C 1cd(0x3F,16,2);
^~~
C:\Users\user\Documents\Arduino\sketch_jun09a\sketch_jun09a.ino: In function 'void setup()':
sketch_jun09a:6:3: error: unable to find numeric literal operator 'operator""cd.init'
1cd.init();
^~~~~~~~
sketch_jun09a:8:3: error: unable to find numeric literal operator 'operator""cd.backlight'
1cd.backlight();
^~~~~~~~~~~~~
sketch_jun09a:9:3: error: unable to find numeric literal operator 'operator""cd.setCursor'
1cd.setCursor(0,0);
^~~~~~~~~~~~~
sketch_jun09a:10:3: error: unable to find numeric literal operator 'operator""cd.print'
1cd.print("Hello, world!");
^~~~~~~~~
sketch_jun09a:11:3: error: unable to find numeric literal operator 'operator""cd.setCursor'
1cd.setCursor(0,1);
^~~~~~~~~~~~~
sketch_jun09a:12:3: error: unable to find numeric literal operator 'operator""cd.print'
1cd.print("Enjoy - Eduino");
^~~~~~~~~
exit status 1
expected unqualified-id before numeric constant
이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
활성화하여 더 많은 정보를
보이게 할 수 있습니다.