From 2e398df58d4f0d679890f1af0167ae66e60a4c33 Mon Sep 17 00:00:00 2001 From: "Lee A. Butler" Date: Sun, 2 Jun 2019 14:08:31 -0400 Subject: [PATCH] fix backlight inconsistency --- adafruit_featherwing/minitft_featherwing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_featherwing/minitft_featherwing.py b/adafruit_featherwing/minitft_featherwing.py index 4c85d9b..3c73956 100755 --- a/adafruit_featherwing/minitft_featherwing.py +++ b/adafruit_featherwing/minitft_featherwing.py @@ -102,7 +102,7 @@ def backlight(self, brightness): """ Set the backlight duty cycle """ - self._backlight.duty_cycle = int(255 * min(max(1 - brightness, 0.0), 1.0)) + self._backlight.duty_cycle = int(255 * min(max(brightness, 0.0), 1.0)) @property def buttons(self):