Skip to content

Commit 7c424d0

Browse files
authored
Merge pull request #134 from adafruit/tannewt-patch-1
Implement placeholder root_group property
2 parents b089f40 + 9b93d22 commit 7c424d0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

adafruit_rgb_display/rgb.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,19 @@ def rotation(self, val: int) -> None:
255255
raise ValueError("Rotation must be 0/90/180/270")
256256
self._rotation = val
257257

258+
@property
259+
def root_group(self) -> None:
260+
"""Placeholder attribute to catch displayio use"""
261+
raise NotImplementedError(
262+
"Please use a displayio driver for the display. This is the pixel-level driver."
263+
)
264+
265+
@root_group.setter
266+
def root_group(self, val) -> None:
267+
raise NotImplementedError(
268+
"Please use a displayio driver for the display. This is the pixel-level driver."
269+
)
270+
258271

259272
class DisplaySPI(Display):
260273
"""Base class for SPI type devices"""

0 commit comments

Comments
 (0)