Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Øyvind Kolås
firmware
Commits
68caf887
Commit
68caf887
authored
Oct 15, 2020
by
schneider
Browse files
change(spo2): Display warning at start
parent
ddb872c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
preload/apps/spo2/__init__.py
View file @
68caf887
...
...
@@ -144,6 +144,16 @@ class SPO2:
if
__name__
==
"__main__"
:
disp
=
display
.
open
()
disp
.
clear
()
disp
.
print
(
"ATTENTION:"
,
posy
=
0
)
disp
.
print
(
"DEMO ONLY!"
,
posy
=
20
,
fg
=
color
.
RED
)
disp
.
print
(
"RESULTS ARE"
,
posy
=
40
)
disp
.
print
(
"WRONG!"
,
posy
=
60
,
fg
=
color
.
RED
)
disp
.
update
()
time
.
sleep
(
5
)
sensor
=
SPO2
()
try
:
sensor
.
open
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment