BASIC4MCU | 질문게시판 | 답변 : 오늘 처음 가입했는데요ㅠㅠ 적외선센서 아두이노 질문ㅠㅠ
페이지 정보
작성자 master 작성일2018-12-01 00:44 조회4,225회 댓글0건
https://www.basic4mcu.com/bbs/board.php?bo_table=gac&wr_id=6106
본문
// MCU BASIC: https://www.basic4mcu.com// DateTime : 2018-12-01 오전 12:49:59// by Ok-Hyun Park//void loop(){NextDotDash:while(analogRead(A0)>1000); t1=millis(); digitalWrite(ledPin,HIGH);while(analogRead(A0)<1000); t2=millis(); digitalWrite(ledPin,LOW);signal_len=t2-t1;if(signal_len>50)code+=readio();//while((millis()-t2)<500){if(digitalRead(inputPin)==LOW)goto NextDotDash;}convertor();}
댓글 0
조회수 4,225등록된 댓글이 없습니다.