Skip to content

Commit 9bf5c22

Browse files
committedJul 14, 2021
Include auto_write
1 parent efc64d8 commit 9bf5c22

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎adafruit_macropad.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,18 @@ def __getitem__(self, index):
911911
def __repr__(self):
912912
return self._pixels.__repr__()
913913

914+
@property
915+
def auto_write(self):
916+
"""
917+
True if the neopixels should immediately change when set. If False, ``show`` must be
918+
called explicitly.
919+
"""
920+
return self._pixels.auto_write
921+
922+
@auto_write.setter
923+
def auto_write(self, value):
924+
self._pixels.auto_write = value
925+
914926
@property
915927
def brightness(self):
916928
"""Overall brightness of the pixel (0 to 1.0)."""

0 commit comments

Comments
 (0)
Please sign in to comment.