-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanager.py
More file actions
44 lines (32 loc) · 861 Bytes
/
manager.py
File metadata and controls
44 lines (32 loc) · 861 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
#import scripts
import light_neopixel
import speak_gpt
import move_servo
import time
try:
#NeoPixel = RED = power on & loading
light_neopixel.pixels.fill((255, 0, 0))
light_neopixel.pixels.show()
time.sleep(3)
# print("Ready to go ... ")
# # #NeoPixel = GREEN = Ready to listen
# light_neopixel.pixels.fill((0, 255, 0))
# light_neopixel.pixels.show()
# time.sleep(5)
#Servo waves
# #Wave Hi
# move_servo.wave_hi()
# print("waving Hi!")
# time.sleep(5)
# #Speak GPT
# # Call the main loop function in speak_gpt.py
print("Starting GPT ...")
speak_gpt.main_loop()
# # wait for 1 second
# time.sleep(1)
finally:
# Turn off all LEDs
light_neopixel.pixels.fill((0, 0, 0))
light_neopixel.pixels.show()
print("okay, bye ...")