Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from sense_hat import SenseHat
  2. import time
  3.  
  4. sense = SenseHat()
  5.  
  6. class Instructions:
  7. def __init__(self, instructions):
  8. self.instructions = sense.show_message("Take turns between two players, first player to score 30, wins!")
  9.  
  10. def myfunc(self):
  11. sense.show_message(scroll_speed=0.10)
  12. time.sleep(10)
  13.  
  14. d1 = Instructions(sense)
  15. d1.myfunc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement