Switch back to threading
This commit is contained in:
parent
75cea0753a
commit
4e576599bd
|
@ -1,8 +1,8 @@
|
|||
import sys
|
||||
|
||||
from character_display import CharacterDisplay
|
||||
from multiprocessing import Event
|
||||
from multiprocessing import Process
|
||||
from threading import Event
|
||||
from threading import Thread
|
||||
from signal import signal
|
||||
from signal import SIGTERM
|
||||
from time import sleep
|
||||
|
@ -28,7 +28,7 @@ def main():
|
|||
signal(SIGTERM, cleanExit(unicorn, haltEvent))
|
||||
unicorn.brightness(0.3)
|
||||
|
||||
weatherThread = Process(target=weatherLoop, args=[haltEvent])
|
||||
weatherThread = Thread(target=weatherLoop, args=[haltEvent])
|
||||
weatherThread.start()
|
||||
|
||||
characterDisplay = CharacterDisplay(unicorn)
|
||||
|
|
Loading…
Reference in New Issue