BASIC4MCU | 질문게시판 | 답변 : 아두이노 스위치
페이지 정보
작성자 master 작성일2018-06-01 15:04 조회7,682회 댓글0건
https://www.basic4mcu.com/bbs/board.php?bo_table=gac&wr_id=1319
본문
// MCU BASIC: https://www.basic4mcu.com// DateTime : 2018-06-01 오후 3:07:02// by Ok-Hyun Park//void loop(){loop1:;if(digitalRead(buttonPin )==LOW){ mode=1; }if(digitalRead(buttonPin2)==LOW){ mode=2; }if(digitalRead(buttonPin3)==LOW){ mode=3; }//show(1,mode); delay(delayTime);}
스위치 체크예제
댓글 0
조회수 7,682등록된 댓글이 없습니다.