/SGuai

SGUAI bottles, but programmatically

Primary LanguagePythonApache License 2.0Apache-2.0

SGuai

Usage:

import asyncio
import time

from sguai import SG, SCREEN_TIMEOUT_30s, TEXT_EFFECT_FIXED


async def main():
    s = SG()
    await s.connect("2E:80:92:XX:XX:XX")
    await s.set_screen_timeout(SCREEN_TIMEOUT_30s)
    await s.set_text_animation(TEXT_EFFECT_FIXED)
    while True:
        await s.draw_text("%.4f" % (time.time() % 1000))

asyncio.run(main())