Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Sparkly
- from sense_hat import SenseHat
- from random import randint
- from time import sleep
- sense = SenseHat()
- while True:
- x = randint(0,7)
- y = randint(0,7)
- b = randint(0,255)
- r = randint(0,255)
- g = randint(0,255)
- sense.set_pixel(x,y,r,g,b)
- sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement