From 34bc58d52e393b5b5b8eeed3c974ccbb2afbdace Mon Sep 17 00:00:00 2001 From: BBfiChe <113315299+BBfiChe@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:46:11 -0600 Subject: [PATCH 1/2] Update Flashlight.py --- Flashlight/Flashlight.py | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/Flashlight/Flashlight.py b/Flashlight/Flashlight.py index 143a7c5..6426fef 100644 --- a/Flashlight/Flashlight.py +++ b/Flashlight/Flashlight.py @@ -22,22 +22,36 @@ clicks = 1 fill = 1 +ctr = 2 + +thumby.display.fill(1) +thumby.display.brightness(127) + +def checks(): + global ctr + if ctr == 0: + thumby.display.brightness(27) + if ctr == 1: + thumby.display.brightness(72) + if ctr == 2: + thumby.display.brightness(127) + if ctr > 2: + ctr = 0 + if ctr < 0: + ctr = 2 while True: + checks() thumby.display.fill(fill) - thumby.display.blit(version, 0, 31, 8, 8, -1, 0, 0) + #thumby.display.blit(version, 0, 31, 8, 8, -1, 0, 0) - if thumby.buttonA.justPressed(): - if fill == 1: - fill = 0 - version = bytearray([0,16,48,240,240,240,48,16, - 0,0,0,3,3,3,0,0]) - else: - fill = 1 - version = bytearray([255, 233, 207, 9, 15, 9, 207, 233, - 3, 3, 3, 0, 0, 0, 3, 3]) + if thumby.buttonU.justPressed(): + ctr += 1 + if thumby.buttonD.justPressed(): + ctr -= 1 + - if thumby.buttonB.justPressed(): + if thumby.buttonB.justPressed() or thumby.buttonA.justPressed(): if clicks == 1: thumby.display.fill(0) thumby.display.drawText("Exiting...", 5, 10, 1) From aad89bb9ab2bd8d3507549074030b45f4a51f034 Mon Sep 17 00:00:00 2001 From: BBfiChe <113315299+BBfiChe@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:49:35 -0600 Subject: [PATCH 2/2] Update arcade_description.txt --- Flashlight/arcade_description.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Flashlight/arcade_description.txt b/Flashlight/arcade_description.txt index 3d4dea0..365b470 100644 --- a/Flashlight/arcade_description.txt +++ b/Flashlight/arcade_description.txt @@ -4,6 +4,12 @@ Created by @BBfiChe on Discord ------------------- Updates: ------------------- +Update 1.0.2 + - Added a brightness level changer + - Thumby starts the game at screen's max brightness + - Removed the ablility to turn off the flashlight as it was not very useful + - Removed flashlight symbol + Update 1.0.1 - Updated dark screen flashlight to appear off instead of on.