Skip to content

Commit

Permalink
added brightness_default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinosaurier101 committed Mar 7, 2023
1 parent 9dff09b commit 52c40b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#https://github.com/Dinosaurier101/MacropadHotkey

import time
import os
import displayio
Expand Down Expand Up @@ -26,7 +28,7 @@

pressed_color = 0xffffff # led color of the pressed key
MACRO_FOLDER = '/macros' # folder where macro files are stored
brightness = 0.1 # overall led pixel brightness
brightness_default = 0.1 # overall led pixel brightness


### functions
Expand Down Expand Up @@ -223,6 +225,7 @@ def display_setup(): # set up display groups

display_setup()

brightness = brightness_default
set_brightness()

switch()
Expand Down

0 comments on commit 52c40b8

Please sign in to comment.