Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from microbit import * # 마이크로비트 모듈의 모든 명령 사용
- stop = Image("00900:00900:00900:00900:00900") # 서 있는 이미지
- walk1 = Image("00900:" # 걷는 이미지 첫 번째
- "09990:"
- "00900:"
- "09090:"
- "09090")
- walk2 = Image("00900:" # 걷는 이미지 두 번째
- "09990:"
- "90909:"
- "09090:"
- "90009")
- display.show(stop) # 서있는 이미지 보여주기
- sleep(3000) # 3초 지연
- display.show(walk1) # 첫 번째 걷는 이미지 보여주기
- sleep(300) # 0.3초 지연
- display.show(walk2) # 두 번째 걷는 이미지 보여주기
- sleep(300) # 0.3초 지연
- display.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement