Skip to content
Snippets Groups Projects
Commit f3934be8 authored by Leonardo Martinez Hornak's avatar Leonardo Martinez Hornak
Browse files

BT Code added but is not working

parent 98e8fd53
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ from types import SimpleNamespace
from enum import Enum
from threading import Thread
from hardware_interface import Hardware_interface
TIME_OUT = 0.5 #Time out used for refreshing the User Interface
class Messages(Enum):
......@@ -35,7 +37,7 @@ def refreshUI(guiRef, model, guiQueue):
pass
#Other tasks...
print("Han pasado 500 milisegundos")
#print("Han pasado 500 milisegundos")
#Class for the User Interface
......@@ -162,6 +164,9 @@ if __name__ == '__main__':
guiRef = app.gui_reference(root, guiQueue)
model = SimpleNamespace(count=0)
#Bluetooth object for communication with MSP432
btInterface = Hardware_interface()
#Thread used to separate the use interface with the front end. It is used to not slow down the GUI when processing information
t = Thread(target=refreshUI, args=(guiRef, model, guiQueue,))
t.daemon = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment