Skip to content

Commit 4a84676

Browse files
authored
Merge pull request #7 from kattni/moar-fix
Include auto_write
2 parents efc64d8 + 9bf5c22 commit 4a84676

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

adafruit_macropad.py

+12
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)