Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sense_hat import SenseHat
- sense = SenseHat()
- O = (0, 0, 0)
- X = (255, 255, 255)
- B = (0, 187, 255)
- F = (0, 24, 114)
- R = (224, 44, 44)
- H = (61, 32, 23)
- P = (247, 209, 197)
- creeper_pixels = [
- O, O, O, R, R, R, X, O,
- O, O, O, R, R, R, R, R,
- O, O, H, P, H, O, P, O,
- O, O, H, P, P, H, H, P,
- O, O, O, H, P, P, P, O,
- O, R, R, X, B, B, F, O,
- X, O, B, B, B, B, F, X,
- O, O, B, O, O, O, B, O,
- ]
- sense.set_pixels(creeper_pixels)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement