tak2저격글2 > 코딩 스토리

tak2저격글2

페이지 정보

작성자 tak2저격글2이름으로 검색 (211.♡.168.221) 작성일 24-10-18 10:25 조회 1,500 댓글 1

본문

from microbit import *
import audio

led_image = Image("11111:11111:11111:11111:11111")
touch_image = Image("00000:09090:00000:90009:09990")
shake_image = Image("99099:99099:00900:09090:00900")
timer=0
audio.play(Sound.HELLO)

while True:
    display.show(led_image * ((microphone.sound_level()/255) * 9) )
    if pin_logo.is_touched():
        timer = 0
        display.show(touch_image)
        audio.play(Sound.HAPPY)
    elif accelerometer.was_gesture('shake'):
        timer = 0
        display.show(shake_image)
        audio.play(Sound.GIGGLE)
    else:
        sleep(5000)
        timer = timer + 1
    if  timer == 60 :
        display.show(Image.ASLEEP)
        audio.play(Sound.YAWN)
    elif timer == 120 :
        display.show(Image.CONFUSED)
        audio.play(Sound.SAD)
    elif timer == 180 :
        display.show(Image.ANGRY)
        audio.play(Sound.MYSTERIOUS)
좋아요45 이 글을 좋아요하셨습니다
url 복사 카카오톡 공유 라인 공유 페이스북 공유 트위터 공유

카테고리 분류 학습 시스템 (총 0개 학습됨)

예측 카테고리: 게임 (랜덤 - 학습 데이터 없음)

이 분류가 맞나요? 학습시켜주세요!

woojintak님의 댓글

woojintak이름으로 검색 아이피 (192.♡.0.1) 작성일

ㅡㅡ;;

😶
❤️
😂
😅
😮
😡
🥵

tak2님의 댓글

tak2쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (211.♡.230.157) 작성일

테스트

😶
❤️
😂
😅
😮
😡
🥵
  • RSS
  • _  글쓰기 글쓰기
전체 302건
게시물 검색

접속자집계

오늘
1,179
어제
3,897
최대
42,418
전체
939,407