Skip to content

Commit b560c39

Browse files
add brightness property; refactor examples; format with black
1 parent f179783 commit b560c39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adafruit_neotrellis/multitrellis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def sync(self):
103103
@property
104104
def brightness(self):
105105
"""The NeoPixel brightness level of all clustered NeoTrellis boards."""
106-
return self.brightness
106+
return self._brightness
107107

108108
@brightness.setter
109109
def brightness(self, new_brightness):

examples/neotrellis_multitrellis_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
trellis = MultiTrellis(trelli)
2828

2929
# Set the brightness value (0 to 1.0)
30-
trellis.brightness = 0.05
30+
trellis.brightness = 0.5
3131

3232
# some color definitions
3333
OFF = (0, 0, 0)

examples/neotrellis_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
trellis = NeoTrellis(i2c_bus)
1313

1414
# Set the brightness value (0 to 1.0)
15-
trellis.brightness = 0.05
15+
trellis.brightness = 0.5
1616

1717
# some color definitions
1818
OFF = (0, 0, 0)

0 commit comments

Comments
 (0)