SHARE
TWEET

Untitled

a guest Jan 12th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from time import sleep
  2. from sense_hat import SenseHat
  3.  
  4. sense = SenseHat()
  5.  
  6.  
  7. r = (255, 0, 0)
  8.  
  9. g = (0, 255, 0)
  10.  
  11. e = (0, 0, 0)
  12.  
  13. b = (0, 162, 232)
  14.  
  15.  
  16. # rouge, localisation activée
  17. # bleue, connexion au réseau cellulaire établie
  18.  
  19. image = [
  20.  
  21. r,e,e,e,e,e,e,r,
  22.  
  23. e,r,e,e,e,e,r,e,
  24.  
  25. e,e,r,e,e,r,e,e,
  26.  
  27. e,e,e,r,r,e,e,e,
  28.  
  29. e,e,e,r,r,e,e,e,
  30.  
  31. e,e,r,e,e,r,e,e,
  32.  
  33. e,r,e,e,e,e,r,e,
  34.  
  35. r,e,e,e,e,e,e,r
  36. ]
  37.  
  38. sense.set_pixels(image)
RAW Paste Data
Top