We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06238e2 commit a95a79cCopy full SHA for a95a79c
examples/funhouse_temperature_logger.py
@@ -16,13 +16,16 @@
16
17
DELAY = 180
18
FEED = "temperature"
19
-TEMPERATURE_OFFSET = 3 # Degrees C to adjust the temperature to compensate for board produced heat
+TEMPERATURE_OFFSET = (
20
+ 3 # Degrees C to adjust the temperature to compensate for board produced heat
21
+)
22
23
# Turn things off
24
funhouse.peripherals.dotstars.fill(0)
25
funhouse.display.brightness = 0
26
funhouse.network.enabled = False
27
28
+
29
def log_data():
30
print("Logging Temperature")
31
print("Temperature %0.1F" % (funhouse.peripherals.temperature - TEMPERATURE_OFFSET))
@@ -35,6 +38,7 @@ def log_data():
35
38
# Turn off WiFi
36
39
37
40
41
42
while True:
43
log_data()
44
print("Sleeping for {} seconds...".format(DELAY))
0 commit comments