projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow temperature reads to converge a bit faster
[EVA-2020-02-2.git]
/
examples
/
all-in-one.py
diff --git
a/examples/all-in-one.py
b/examples/all-in-one.py
index 6314137e4dfb4109740ec33f1ba70e1e2bb891d6..ca0760b6e84f651a456921b88f5ed34f37a1c424 100755
(executable)
--- a/
examples/all-in-one.py
+++ b/
examples/all-in-one.py
@@
-93,7
+93,7
@@
def get_cpu_temperature():
# temperature down, and increase to adjust up
factor = 0.8
-cpu_temps = [
0
] * 5
+cpu_temps = [
get_cpu_temperature()
] * 5
delay = 0.5 # Debounce the proximity tap
mode = 0 # The starting mode