Skip to content

Commit 44412af

Browse files
authored
Merge pull request #3198 from adafruit/TheKitty-patch-1
Fix display brightness scaling during fade down
2 parents e793266 + e9e9232 commit 44412af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magic_Nine_Ball/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
# Fade down the backlight
6767
for b in range(100, 0, -1):
68-
board.DISPLAY.brightness = b
68+
board.DISPLAY.brightness = b / 100
6969
time.sleep(0.005) # default (0.005)
7070

7171
splash.pop()

0 commit comments

Comments
 (0)