Skip to content

Commit 65d6c43

Browse files
authored
Merge pull request #44 from iraytrace/master
fix backlight inconsistency
2 parents b040241 + 2e398df commit 65d6c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_featherwing/minitft_featherwing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def backlight(self, brightness):
102102
"""
103103
Set the backlight duty cycle
104104
"""
105-
self._backlight.duty_cycle = int(255 * min(max(1 - brightness, 0.0), 1.0))
105+
self._backlight.duty_cycle = int(255 * min(max(brightness, 0.0), 1.0))
106106

107107
@property
108108
def buttons(self):

0 commit comments

Comments
 (0)