projects
/
EVA-2020-02-2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47f1b58
)
Fix combined.py indentation for Python 3.x
author
Phil Howard
<phil@gadgetoid.com>
Thu, 30 Jul 2020 09:47:04 +0000
(10:47 +0100)
committer
Phil Howard
<phil@gadgetoid.com>
Thu, 30 Jul 2020 09:47:04 +0000
(10:47 +0100)
examples/combined.py
patch
|
blob
|
blame
|
history
diff --git
a/examples/combined.py
b/examples/combined.py
index b417ccf1f74e0f81bc4a73a38fa9dd5848a94987..6c4ab6f5d8b7911c9fd72624643409eee8411196 100755
(executable)
--- a/
examples/combined.py
+++ b/
examples/combined.py
@@
-26,7
+26,7
@@
logging.basicConfig(
level=logging.INFO,
datefmt='%Y-%m-%d %H:%M:%S')
level=logging.INFO,
datefmt='%Y-%m-%d %H:%M:%S')
-logging.info("""
all-in-one
.py - Displays readings from all of Enviro plus' sensors
+logging.info("""
combined
.py - Displays readings from all of Enviro plus' sensors
Press Ctrl+C to exit!
Press Ctrl+C to exit!
@@
-172,7
+172,7
@@
def display_everything():
variable = variables[i]
data_value = values[variable][-1]
unit = units[i]
variable = variables[i]
data_value = values[variable][-1]
unit = units[i]
- x = x_offset + ((WIDTH /
column_count) * (i
/ row_count))
+ x = x_offset + ((WIDTH /
/ column_count) * (i /
/ row_count))
y = y_offset + ((HEIGHT / row_count) * (i % row_count))
message = "{}: {:.1f} {}".format(variable[:4], data_value, unit)
lim = limits[i]
y = y_offset + ((HEIGHT / row_count) * (i % row_count))
message = "{}: {:.1f} {}".format(variable[:4], data_value, unit)
lim = limits[i]