24. 08. 30 센텀고 정보 수업 스마트가로등
본문
[code]
from microbit import *
light_1 = Image("00000:00000:00000:00000:00000")
light_2 = Image("55555:55555:55555:55555:55555")
light_3 = Image("99999:99999:99999:99999:99999")
while True:
light = display.read_light_level()
if light >= 100:
display.show(Image("00000:00000:00000:00000:00000"))
elif light >= 50:
display.show(Image("55555:55555:55555:55555:55555"))
else:
display.show(Image("99999:99999:99999:99999:99999"))
sleep(100)
[/code]
좋아요54
이 글을 좋아요하셨습니다
카테고리 분류 학습 시스템 (총 0개 학습됨)
예측 카테고리:
생활-라이프
(랜덤 - 학습 데이터 없음)
이 분류가 맞나요? 학습시켜주세요!
등록된 댓글이 없습니다.