File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
# 2020-01-29 v3.2
3
3
# (c) 2020 Jan Goolsbey for Adafruit Industries
4
4
5
- from thermal_cam_converters import celsius_to_fahrenheit , fahrenheit_to_celsius
6
5
import time
7
6
import board
8
7
import displayio
12
11
from adafruit_display_shapes .rect import Rect
13
12
import adafruit_amg88xx
14
13
from adafruit_pybadger import PyBadger
14
+ from thermal_cam_converters import celsius_to_fahrenheit , fahrenheit_to_celsius
15
+ # Load default alarm and min/max range values list from config file
16
+ from thermal_cam_config import ALARM_F , MIN_RANGE_F , MAX_RANGE_F
15
17
16
18
# Establish panel instance and check for joystick
17
19
panel = PyBadger (pixels_brightness = 0.1 ) # Set NeoPixel brightness
44
46
MIN_SENSOR_F = celsius_to_fahrenheit (MIN_SENSOR_C )
45
47
MAX_SENSOR_F = celsius_to_fahrenheit (MAX_SENSOR_C )
46
48
47
- # Load default alarm and min/max range values list from config file
48
- from thermal_cam_config import ALARM_F , MIN_RANGE_F , MAX_RANGE_F
49
-
50
49
# Convert default alarm and min/max range values from config file
51
50
ALARM_C = fahrenheit_to_celsius (ALARM_F )
52
51
MIN_RANGE_C = fahrenheit_to_celsius (MIN_RANGE_F )
You can’t perform that action at this time.
0 commit comments