Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Proyecto Smart Watch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leonardo Martinez Hornak
Proyecto Smart Watch
Commits
f3934be8
Commit
f3934be8
authored
3 years ago
by
Leonardo Martinez Hornak
Browse files
Options
Downloads
Patches
Plain Diff
BT Code added but is not working
parent
98e8fd53
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/smartwatch.py
+6
-1
6 additions, 1 deletion
software/smartwatch.py
with
6 additions
and
1 deletion
software/smartwatch.py
+
6
−
1
View file @
f3934be8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment