forked from djferg/civ-ipriot-smiley
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (17 loc) · 740 Bytes
/
Copy pathmain.py
File metadata and controls
25 lines (17 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""Demonstrates the use of the Smiley class and its subclasses.
If you have access to a SenseHAT (either via a Raspberry Pi or a SenseHAT emulator), you can use the real SenseHAT class instead of the mock SenseHAT class.
That is, delete the sense_hat.py file that is included in this bundle."""
import time
from happy import Happy
def main():
smiley = Happy()
smiley.show()
time.sleep(1)
smiley.blink()
if __name__ == '__main__':
############################################################
# Uncomment the lines below only if you have multi-processing issues
# from multiprocessing import freeze_support
# freeze_support()
############################################################
main()