X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/5856ada1d53be9d839149d439ff1b10791607320..6cd5a377b719823e1812fb2d0a950ab9af246126:/displayio/display.py diff --git a/displayio/display.py b/displayio/display.py index 84cdc25..eb3d635 100644 --- a/displayio/display.py +++ b/displayio/display.py @@ -353,7 +353,7 @@ class Display: if 0 <= float(value) <= 1.0: self._brightness = value if self._backlight_type == BACKLIGHT_IN_OUT: - self._backlight.value = int(round(self._brightness)) + self._backlight.value = round(self._brightness) # PWM not currently implemented # Command-based brightness not implemented else: