File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
DELAY = 180
18
18
FEED = "temperature"
19
- TEMPERATURE_OFFSET = 3 # Degrees C to adjust the temperature to compensate for board produced heat
19
+ TEMPERATURE_OFFSET = (
20
+ 3 # Degrees C to adjust the temperature to compensate for board produced heat
21
+ )
20
22
21
23
# Turn things off
22
24
funhouse .peripherals .dotstars .fill (0 )
23
25
funhouse .display .brightness = 0
24
26
funhouse .network .enabled = False
25
27
28
+
26
29
def log_data ():
27
30
print ("Logging Temperature" )
28
31
print ("Temperature %0.1F" % (funhouse .peripherals .temperature - TEMPERATURE_OFFSET ))
@@ -35,6 +38,7 @@ def log_data():
35
38
# Turn off WiFi
36
39
funhouse .network .enabled = False
37
40
41
+
38
42
while True :
39
43
log_data ()
40
44
print ("Sleeping for {} seconds..." .format (DELAY ))
You can’t perform that action at this time.
0 commit comments