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