모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    우유속의딸기님의
    개인페이지입니다
    가입 : 13-03-11
    방문 : 2851회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_2183
    작성자 : 우유속의딸기
    추천 : 1
    조회수 : 644
    IP : 121.136.***.51
    댓글 : 5개
    등록시간 : 2014/03/27 21:57:00
    http://todayhumor.com/?programmer_2183 모바일
    정말 죄송한데.. AVR ATMEAG128 질문드려도 될까요?
    <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">2개의 스위치가 각각 led가 한 방향으로 내려가거나, 올라가게 하도록 하고,</div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">스위치 모두 내렸을 때는 반드시 0xef LED부터 아래로 순차적으로 내려가게 하도록 하려 합니다.</div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"><br style="margin: 0px; padding: 0px" /></div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">여기서 질문 드리고 싶은점은, 초기값을 0xef로 두면 불빛이 0xef만 빛나고 아래로 내려가진 않고,</div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">제가 한 대로 하면 led가 모두 꺼졌을 때만 oxef에서 시작하여 순차적으로 내려갑니다. </div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">//당연히 <span style="margin: 0px; padding: 0px; line-height: 1.5">if(LED==0xff) LED=0xfe; 로 했기 때문이지만, 이걸 빼고 뭘 넣어야 될지 몰라서..</span></div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"><span style="margin: 0px; padding: 0px; line-height: 1.5"><br style="margin: 0px; padding: 0px" /></span></div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"><br /></div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">요점은 어떤 변수를 설정하여 초기값을 주어야 스위치 2개를 모두 내렸을 때 0xef 부터 led가 작동할까요?</div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px">변수를 설정하여 초기값을 줘야할 것 같은데.. 감이 안잡히네요 ㅠ </div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"><br /></div> <div style="margin: 0px; padding: 0px; color: #404040; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"><br style="margin: 0px; padding: 0px" /></div> <div style="margin: 0px; padding: 0px; font-family: gulim, sans-serif; font-size: 13px; line-height: 22.100000381469727px"> <div style="color: #404040; margin: 0px; padding: 0px">#include <avr io.h=""></avr></div> <div style="color: #404040; margin: 0px; padding: 0px">unsigned char LED;</div> <div style="color: #404040; margin: 0px; padding: 0px">void delay(unsigned long i)</div> <div style="color: #404040; margin: 0px; padding: 0px">{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>while (--i);</div> <div style="color: #404040; margin: 0px; padding: 0px">}</div> <div style="color: #404040; margin: 0px; padding: 0px">void SHIFTL()</div> <div style="color: #404040; margin: 0px; padding: 0px">{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED=0xfe;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>else</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>LED = (LED<<1) | 0x01;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED = 0xfe;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>}</div> <div style="color: #404040; margin: 0px; padding: 0px">}</div> <div style="color: #404040; margin: 0px; padding: 0px"><br style="margin: 0px; padding: 0px" /></div> <div style="color: #404040; margin: 0px; padding: 0px">void SHIFTR()</div> <div style="color: #404040; margin: 0px; padding: 0px">{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED=0x7f;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>else</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>LED = (LED>>1) | 0x80;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED = 0x7f;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>}</div> <div style="color: #404040; margin: 0px; padding: 0px">}</div> <div style="margin: 0px; padding: 0px"><font color="#ff0000">void SHIFTR2()</font></div> <div style="color: #404040; margin: 0px; padding: 0px">{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED=0xef;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>else</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>{</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>LED = (LED<<1) | 0x01;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>if(LED==0xff) LED = 0xfe;</div> <div style="color: #404040; margin: 0px; padding: 0px"><span class="Apple-tab-span" style="margin: 0px; padding: 0px; white-space: pre"></span>}</div> <div style="color: #404040; margin: 0px; padding: 0px">}</div></div>

    이 게시물을 추천한 분들의 목록입니다.
    [1] 2014/03/27 22:55:26  202.150.***.54  왕사랑의맛  342577
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    38
    크루를 시작합니다. [9] 우유속의딸기 14/05/17 00:23 87 0
    37
    [극혐] 항아리를 깟는데.. [3] 우유속의딸기 14/05/11 13:53 301 0
    36
    [닉언죄](안톤) 검오나님 나눔 잘 받았습니다 ^-^ [7] 우유속의딸기 14/05/10 21:18 93 15
    35
    남스커, 여스커 뭘 키워야 될까요 [2] 우유속의딸기 14/04/25 17:58 94 0
    34
    까고 싶지 않았지만 깔 수 밖에 없는 하앙으리! [9] 우유속의딸기 14/04/14 21:50 184 0
    정말 죄송한데.. AVR ATMEAG128 질문드려도 될까요? 우유속의딸기 14/03/27 21:57 8 0
    32
    닉언죄) 현랑호로님 나눔 감사합니다 우유속의딸기 14/02/19 13:42 72 1
    31
    점심을 여는 항아리? [16] 우유속의딸기 14/02/17 12:43 359 1
    30
    갑자기 예전 불사조이벤트가 생각나네요 [1] 우유속의딸기 14/02/13 11:06 114 0
    29
    데페 질문드려요 [8] 우유속의딸기 14/02/12 12:53 100 0
    28
    이번 패키지 칭호,크리쳐, 주고 또주고 이벤트 한눈에 보기 [1] 우유속의딸기 14/01/23 13:57 246 5
    27
    엘븐나이트에게 어떤 고던 무기가 더 좋을가요? [5] 우유속의딸기 14/01/17 13:31 116 0
    26
    담담한 진혼 강화및 리버 도전 [11] 우유속의딸기 14/01/16 19:18 194 3
    25
    내일 정기정검은 일찍 시작하네요 [5] 우유속의딸기 14/01/15 21:06 154 0
    24
    인파 레압이 생겼는데,, [3] 우유속의딸기 14/01/08 18:05 64 0
    23
    후라이머리 얼굴 맘에 안들어요 ㅠ [9] 우유속의딸기 14/01/01 20:30 197 0
    22
    윈엠프 핫키가 특정 프로그램에서 적용이 안됩니다. 도와주세요 ㅠ 우유속의딸기 13/12/26 20:26 11 0
    21
    항상 견적 짤 때 도움주셨던 컴게분들 ! [12] 우유속의딸기 13/12/20 11:50 91 0
    20
    룩덕상자 질문드립니다 [5] 우유속의딸기 13/12/15 21:10 107 0
    19
    오늘 재료주머니 다 까야겠네요. 우유속의딸기 13/12/11 20:09 80 0
    18
    버닝 soso 팁 [1] 우유속의딸기 13/12/08 12:51 158 0
    17
    신청도 안했는데 던페 전화왔네요 [4] 우유속의딸기 13/12/02 13:18 207 0
    16
    리버 13회차 / 절탑 100층 [9] 우유속의딸기 13/11/30 17:34 193 0
    15
    웰치스 ~ 우유속의딸기 13/11/29 19:26 25 3
    14
    오랜만에 웰치스 사니까 춘향이가 그려져있네요?ㅎ [2] 우유속의딸기 13/11/29 14:50 108 0
    13
    혹시 만렙으로 강화석 노가다 하시는분 계신가요? [2] 우유속의딸기 13/11/14 18:22 131 0
    12
    견적 짜봤는데 도움 부탁드려요 [4] 우유속의딸기 13/11/13 13:32 61 0
    11
    뽑기좀 할게요 ㅎ [1] 우유속의딸기 13/11/06 23:54 127 1
    10
    왜 이런 기능은 안생길까요 [4] Somewhere 13/10/18 17:30 156 0
    9
    데스크탑 업그레이드 질문드립니다. [7] Somewhere 13/10/15 16:42 60 0
    [1] [2] [3]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈