Skip to content

Commit 7ec6f20

Browse files
authored
Merge pull request #36 from dhalbert/no-auto-brightness
handle no .auto-brightness
2 parents 910389d + fa75ca0 commit 7ec6f20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_pyoa.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def __init__(self) -> None:
8787
self._background_file = None
8888
self._wavfile = None
8989

90-
self._display.auto_brightness = False
90+
try:
91+
self._display.auto_brightness = False
92+
except AttributeError:
93+
pass
9194
self.backlight_fade(0)
9295
self._display.show(self.root_group)
9396
self.touchscreen = None

0 commit comments

Comments
 (0)