forked from NM-TAFE/civ-ipriot-smiley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
24 lines (17 loc) · 739 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""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 angry import Angry
def main():
smiley = Angry()
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()