We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f1b58 commit c161c52Copy full SHA for c161c52
examples/combined.py
@@ -26,7 +26,7 @@
26
level=logging.INFO,
27
datefmt='%Y-%m-%d %H:%M:%S')
28
29
-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
30
31
Press Ctrl+C to exit!
32
@@ -172,7 +172,7 @@ def display_everything():
172
variable = variables[i]
173
data_value = values[variable][-1]
174
unit = units[i]
175
- x = x_offset + ((WIDTH / column_count) * (i / row_count))
+ x = x_offset + ((WIDTH // column_count) * (i // row_count))
176
y = y_offset + ((HEIGHT / row_count) * (i % row_count))
177
message = "{}: {:.1f} {}".format(variable[:4], data_value, unit)
178
lim = limits[i]
0 commit comments