kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Minor formatting changes
rodzic
f0bfc7c13b
commit
6306d5e753
|
@ -114,7 +114,6 @@ while True:
|
|||
|
||||
bp = (brightness_value / MAX_RANGE) * 100 # gets brightness value in percentage relative to the MAX_LS_VALUE set
|
||||
|
||||
|
||||
# deactivate auto brightness by pressing A
|
||||
if cu.is_pressed(CosmicUnicorn.SWITCH_A):
|
||||
print("Auto brightness off")
|
||||
|
|
|
@ -70,7 +70,7 @@ def calculate_brightness(prev_brightness_val):
|
|||
# draws percentage icon
|
||||
def draw_percentage(x, y):
|
||||
graphics.rectangle(x + 1, y + 1, 2, 2)
|
||||
graphics.line(x + 1 , y + 5, x + 6, y)
|
||||
graphics.line(x + 1, y + 5, x + 6, y)
|
||||
graphics.rectangle(x + 4, y + 4, 2, 2)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue