diff --git a/Flashlight/Flashlight.py b/Flashlight/Flashlight.py index dfa8391d..143a7c58 100644 --- a/Flashlight/Flashlight.py +++ b/Flashlight/Flashlight.py @@ -1,52 +1,52 @@ -import thumby -import time - -# A-Flashlight.py - -black = bytearray([255, 233, 207, 9, 15, 9, 207, 233, - 3, 3, 3, 0, 0, 0, 3, 3]) - -white = bytearray([0, 22, 48, 246, 240, 246, 48, 22, - 0, 0, 0, 3, 3, 3, 0, 0]) - -# BITMAP: width: 8, height: 10 -off_flashlight = bytearray([0,16,48,240,240,240,48,16, - 0,0,0,3,3,3,0,0]) - -version = bytearray([255, 233, 207, 9, 15, 9, 207, 233, - 3, 3, 3, 0, 0, 0, 3, 3]) - - -# BITMAP: width: 8, height: 8 -copyright = bytearray([255,129,189,165,165,165,129,255]) - -clicks = 1 -fill = 1 - -while True: - thumby.display.fill(fill) - 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.buttonB.justPressed(): - if clicks == 1: - thumby.display.fill(0) - thumby.display.drawText("Exiting...", 5, 10, 1) - thumby.display.drawText(" BBfiChe", 3, 25, 1) - thumby.display.blit(copyright, 4, 25, 8, 8, -1, 0, 0) - thumby.display.update() - time.sleep(3) - thumby.reset() - else: - clicks += 1 - - thumby.display.update() +import thumby +import time + +# A-Flashlight.py + +black = bytearray([255, 233, 207, 9, 15, 9, 207, 233, + 3, 3, 3, 0, 0, 0, 3, 3]) + +white = bytearray([0, 22, 48, 246, 240, 246, 48, 22, + 0, 0, 0, 3, 3, 3, 0, 0]) + +# BITMAP: width: 8, height: 10 +off_flashlight = bytearray([0,16,48,240,240,240,48,16, + 0,0,0,3,3,3,0,0]) + +version = bytearray([255, 233, 207, 9, 15, 9, 207, 233, + 3, 3, 3, 0, 0, 0, 3, 3]) + + +# BITMAP: width: 8, height: 8 +copyright = bytearray([255,129,189,165,165,165,129,255]) + +clicks = 1 +fill = 1 + +while True: + thumby.display.fill(fill) + 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.buttonB.justPressed(): + if clicks == 1: + thumby.display.fill(0) + thumby.display.drawText("Exiting...", 5, 10, 1) + thumby.display.drawText(" BBfiChe", 3, 25, 1) + thumby.display.blit(copyright, 4, 25, 8, 8, -1, 0, 0) + thumby.display.update() + time.sleep(3) + thumby.reset() + else: + clicks += 1 + + thumby.display.update() diff --git a/url_list.txt b/url_list.txt index 4f2ff385..2d571958 100755 --- a/url_list.txt +++ b/url_list.txt @@ -3,6 +3,17 @@ https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/ https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Thumgeon/arcade_description.txt https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Thumgeon/arcade_title_video.webm +NAME=MicroSquareRootCalc +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/MicroSquareRootCalc.py +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/arcade_description.txt +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/thumby_emulator_screenshot.png +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/arcade_title_video.webm + +NAME=Flashlight +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Flashlight/arcade_description.txt +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Flashlight/Flashlight.py +https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Flashlight/arcade_title_video.webm + NAME=ChaosGame https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/ChaosGame/arcade_description.txt https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/ChaosGame/ChaosGame.py @@ -240,12 +251,6 @@ https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/ https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/SnekePal/thumbyGrayscale.py https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/SnekePal/arcade_title_video.webm -NAME=MicroSquareRootCalc -https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/MicroSquareRootCalc.py -https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/arcade_description.txt -https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/thumby_emulator_screenshot.png -https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/MicroSquareRootCalc/arcade_title_video.webm - NAME=Thumbdoku https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Thumbdoku/Thumbdoku.py https://raw.githubusercontent.com/TinyCircuits/TinyCircuits-Thumby-Games/master/Thumbdoku/arcade_description.txt