KRITSADA

how to us List examples python microbit

Oct 28th, 2019
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from microbit import *
  2.  
  3. boat1 = Image("05050:"
  4.               "05050:"
  5.               "05050:"
  6.               "99999:"
  7.               "09990")
  8.  
  9. boat2 = Image("00000:"
  10.               "05050:"
  11.               "05050:"
  12.               "05050:"
  13.               "99999")
  14.  
  15. boat3 = Image("00000:"
  16.               "00000:"
  17.               "05050:"
  18.               "05050:"
  19.               "05050")
  20.  
  21. boat4 = Image("00000:"
  22.               "00000:"
  23.               "00000:"
  24.               "05050:"
  25.               "05050")
  26.  
  27. boat5 = Image("00000:"
  28.               "00000:"
  29.               "00000:"
  30.               "00000:"
  31.               "05050")
  32.  
  33. boat6 = Image("00000:"
  34.               "00000:"
  35.               "00000:"
  36.               "00000:"
  37.               "00000")
  38.  
  39. all_boats = [boat1, boat2, boat3, boat4, boat5, boat6]
  40. display.show(all_boats, delay=200)
Add Comment
Please, Sign In to add comment