BASIC4MCU | 질문게시판 | 마이크로 스위치 입력하면 LED출력
페이지 정보
작성자 두두칠리 작성일2022-04-18 23:07 조회6,086회 댓글1건
https://www.basic4mcu.com/bbs/board.php?bo_table=gac&wr_id=19698
본문
댓글 1
조회수 6,086master님의 댓글
master 작성일
if( (PINA0x10==0x10) && (PINA0x02==0x00) ) PORTB=0x09;
else if( (PINA0x10==0x10) || (PINA0x02==0x00) ) PORTB=0x00;
else PORTB=0x08;