Skip to content

Commit b413eaa

Browse files
authored
Implement placeholder root_group property
It throws an error on access to point to displayio
1 parent b089f40 commit b413eaa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

adafruit_rgb_display/rgb.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,16 @@ 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("Please use a displayio driver for the display. This is the pixel-level driver.")
262+
263+
@root_group.setter
264+
def root_group(self, val) -> None:
265+
raise NotImplementedError("Please use a displayio driver for the display. This is the pixel-level driver.")
266+
267+
258268

259269
class DisplaySPI(Display):
260270
"""Base class for SPI type devices"""

0 commit comments

Comments
 (0)