Skip to content

Commit

Permalink
fix set brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilli committed Oct 28, 2023
1 parent 03f2f15 commit 2a6edd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions circuitpython/utils/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ def decrease_brightness(app=None) -> None:
app.macropad.display.brightness = brightness
app.macropad.pixels.brightness = brightness
app.macropad.pixels.show()
app.settings["brightness"] = brightness

def increase_brightness(app=None) -> None:
if app.macropad.display.brightness < 1:
brightness = (round(app.macropad.display.brightness * 10) + 1) / 10
app.macropad.display.brightness = brightness
app.macropad.pixels.brightness = brightness
app.macropad.pixels.show()
app.settings["brightness"] = brightness
app.macropad.pixels.show()

0 comments on commit 2a6edd4

Please sign in to comment.