This commit is contained in:
2026-05-02 23:12:53 -04:00
parent 00fbcc1ce6
commit dd9e4ba193
+3 -5
View File
@@ -2,7 +2,6 @@ import time
import requests import requests
import os import os
import govee import govee
import asyncio
from time import sleep from time import sleep
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont
from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics
@@ -292,10 +291,9 @@ async def run():
last_switch = time.time() last_switch = time.time()
while True: while True:
async with govee_api: govee_api.send_scene(GOVEE_AWS)
await govee_api.send_scene(GOVEE_AWS)
play_goal_celebration() play_goal_celebration()
await govee_api.set_color(255,0,0) govee_api.set_to_original_color()
# while True: # while True:
# now = time.time() # now = time.time()
@@ -335,4 +333,4 @@ async def run():
# time.sleep(0.03) # time.sleep(0.03)
if __name__ == "__main__": if __name__ == "__main__":
asyncio.run(run()) run()