디지털펫 만들기 센텀고 정보 수업
본문
from microbit import *
Led_image1 = Image("11111:11111:11111:11111:11111")
Led_image2 = Image("55555:55555:55555:55555:55555")
Led_image3 = Image("99999:99999:99999:99999:99999")
while True:
sound_level = microphone.sound_level()
print(sound_level)
if sound_level < 85:
display.show(Led_image1)
elif sound_level < 150:
display.show(Led_image2)
else:
display.show(Led_image3)
Led_image1 = Image("11111:11111:11111:11111:11111")
Led_image2 = Image("55555:55555:55555:55555:55555")
Led_image3 = Image("99999:99999:99999:99999:99999")
while True:
sound_level = microphone.sound_level()
print(sound_level)
if sound_level < 85:
display.show(Led_image1)
elif sound_level < 150:
display.show(Led_image2)
else:
display.show(Led_image3)
좋아요43
이 글을 좋아요하셨습니다
카테고리 분류 학습 시스템 (총 0개 학습됨)
예측 카테고리:
교육-입시
(랜덤 - 학습 데이터 없음)
이 분류가 맞나요? 학습시켜주세요!
등록된 댓글이 없습니다.