Skip to content

Commit 342671c

Browse files
authored
Merge pull request adafruit#1255 from FoamyGuy/fix_pybadger_thermal_cam
Fix PyGamer Thermal camera
2 parents 10e87f1 + fe08aea commit 342671c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyGamer_Thermal_Camera/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
from adafruit_bitmap_font import bitmap_font
1111
from adafruit_display_shapes.rect import Rect
1212
import adafruit_amg88xx
13-
from adafruit_pybadger import PyBadger
13+
from adafruit_pybadger import pybadger as panel
1414
from thermal_cam_converters import celsius_to_fahrenheit, fahrenheit_to_celsius
1515
# Load default alarm and min/max range values list from config file
1616
from thermal_cam_config import ALARM_F, MIN_RANGE_F, MAX_RANGE_F
1717

1818
# Establish panel instance and check for joystick
19-
panel = PyBadger(pixels_brightness=0.1) # Set NeoPixel brightness
20-
panel.pixels.fill(0) # Clear all NeoPixels
19+
panel.pixels.brightness = 0.1 # Set NeoPixel brightness
20+
panel.pixels.fill(0) # Clear all NeoPixels
2121
if hasattr(board, "JOYSTICK_X"):
2222
panel.has_joystick = True # PyGamer
2323
else: panel.has_joystick = False # Must be PyBadge

0 commit comments

Comments
 (0)