-
Notifications
You must be signed in to change notification settings - Fork 0
/
sun.py
executable file
·9 lines (7 loc) · 1.07 KB
/
sun.py
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python
import unicornhat
pixels = [[(255, 255, 0), (0, 255, 255), (0, 255, 255), (255, 255, 0), (0, 255, 255), (0, 255, 255), (0, 255, 255), (255, 255, 0)], [(0, 255, 255), (255, 255, 0), (0, 255, 255), (255, 255, 0), (255, 255, 0), (0, 255, 255), (255, 255, 0), (0, 255, 255)], [(0, 255, 255), (0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255), (0, 255, 255)], [(0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0)], [
(255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255)], [(0, 255, 255), (0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255), (0, 255, 255)], [(0, 255, 255), (255, 255, 0), (0, 255, 255), (255, 255, 0), (255, 255, 0), (0, 255, 255), (255, 255, 0), (0, 255, 255)], [(255, 255, 0), (0, 255, 255), (0, 255, 255), (0, 255, 255), (255, 255, 0), (0, 255, 255), (0, 255, 255), (255, 255, 0)]]
def sun():
unicornhat.set_pixels(pixels)
unicornhat.show()