From 6306d5e753f742958a35adf5d21e9cbaf36afbef Mon Sep 17 00:00:00 2001 From: Irvin Date: Thu, 3 Aug 2023 15:26:24 +0100 Subject: [PATCH] Minor formatting changes --- micropython/examples/cosmic_unicorn/light_sensor.py | 1 - micropython/examples/stellar_unicorn/light_sensor.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/micropython/examples/cosmic_unicorn/light_sensor.py b/micropython/examples/cosmic_unicorn/light_sensor.py index 979ff909..46c89a0a 100644 --- a/micropython/examples/cosmic_unicorn/light_sensor.py +++ b/micropython/examples/cosmic_unicorn/light_sensor.py @@ -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") diff --git a/micropython/examples/stellar_unicorn/light_sensor.py b/micropython/examples/stellar_unicorn/light_sensor.py index e2038c22..d2aec759 100644 --- a/micropython/examples/stellar_unicorn/light_sensor.py +++ b/micropython/examples/stellar_unicorn/light_sensor.py @@ -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)