Skip to content

Commit

Permalink
update URL list
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 1, 2024
1 parent 0cc0b4b commit d6ceec4
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 58 deletions.
104 changes: 52 additions & 52 deletions Flashlight/Flashlight.py
Original file line number Diff line number Diff line change
@@ -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()
17 changes: 11 additions & 6 deletions url_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6ceec4

Please sign in to comment.