BASIC4MCU | 질문게시판 | led 아두이노 오류
페이지 정보
작성자 pelu 작성일2020-08-28 22:06 조회8,487회 댓글0건
https://www.basic4mcu.com/bbs/board.php?bo_table=gac&wr_id=13265
본문
expected constructor destructor or type conversion before '(' token
아두이노:1.8.13 (Windows 10), 보드:"Arduino Uno"
오류
sketch_aug28a:24:8: error: expected constructor, destructor, or type conversion before '(' token
sketch_aug28a:25:1: error: expected declaration before '}' token
exit status 1
expected constructor, destructor, or type conversion before '(' token
이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
활성화하여 더 많은 정보를
보이게 할 수 있습니다.
코드void setup() {// put your setup code here, to run once:}void loop() {// put your main code here, to run repeatedly:}/*BlinkTurns on an LED on for one second, then off for one second, repeatedly.This example code is in the public domain.*/// Pin 13 has an LED connected on most Arduino boards.// give it a name:int led = 13;// the setup routine runs once when you press reset:// initialize the digital pin as an output.pinMode(led, OUTPUT);}// the loop routine runs over and over again forever:void loop() {digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)delay(1000); // wait for a seconddigitalWrite(led, LOW); // turn the LED off by making the voltage LOWdelay(1000); // wait for a second}어떻게 하나요??
댓글 0
조회수 8,487등록된 댓글이 없습니다.