update import and initializer for pybadger library

This commit is contained in:
FoamyGuy 2020-09-28 21:49:20 -05:00
parent f290b4a6cd
commit 7560e0f38e

View file

@ -10,13 +10,13 @@ from adafruit_display_text.label import Label
from adafruit_bitmap_font import bitmap_font from adafruit_bitmap_font import bitmap_font
from adafruit_display_shapes.rect import Rect from adafruit_display_shapes.rect import Rect
import adafruit_amg88xx import adafruit_amg88xx
from adafruit_pybadger import PyBadger from adafruit_pybadger import pybadger as panel
from thermal_cam_converters import celsius_to_fahrenheit, fahrenheit_to_celsius from thermal_cam_converters import celsius_to_fahrenheit, fahrenheit_to_celsius
# Load default alarm and min/max range values list from config file # Load default alarm and min/max range values list from config file
from thermal_cam_config import ALARM_F, MIN_RANGE_F, MAX_RANGE_F from thermal_cam_config import ALARM_F, MIN_RANGE_F, MAX_RANGE_F
# Establish panel instance and check for joystick # Establish panel instance and check for joystick
panel = PyBadger(pixels_brightness=0.1) # Set NeoPixel brightness panel.pixels.brightness = 0.1 # Set NeoPixel brightness
panel.pixels.fill(0) # Clear all NeoPixels panel.pixels.fill(0) # Clear all NeoPixels
if hasattr(board, "JOYSTICK_X"): if hasattr(board, "JOYSTICK_X"):
panel.has_joystick = True # PyGamer panel.has_joystick = True # PyGamer