Skip to content

Commit e2509d6

Browse files
Update code.py
1 parent 6835ba8 commit e2509d6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

PyGamer_Thermal_Camera/code.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 2020-01-29 v3.2
33
# (c) 2020 Jan Goolsbey for Adafruit Industries
44

5-
from thermal_cam_converters import celsius_to_fahrenheit, fahrenheit_to_celsius
65
import time
76
import board
87
import displayio
@@ -12,6 +11,9 @@
1211
from adafruit_display_shapes.rect import Rect
1312
import adafruit_amg88xx
1413
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
1517

1618
# Establish panel instance and check for joystick
1719
panel = PyBadger(pixels_brightness=0.1) # Set NeoPixel brightness
@@ -44,9 +46,6 @@
4446
MIN_SENSOR_F = celsius_to_fahrenheit(MIN_SENSOR_C)
4547
MAX_SENSOR_F = celsius_to_fahrenheit(MAX_SENSOR_C)
4648

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-
5049
# Convert default alarm and min/max range values from config file
5150
ALARM_C = fahrenheit_to_celsius(ALARM_F)
5251
MIN_RANGE_C = fahrenheit_to_celsius(MIN_RANGE_F)

0 commit comments

Comments
 (0)