Pannello LED iPIXEL via Bluetooth: orologio, stato di LuZa e token, notifiche, frasi e animazioni a riposo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bea863e011
commit
752b8adb49
9 files changed
+606
-1
No files matched your search
@@ -104,8 +104,17 @@ def main() -> None:
|
||||
assistant.remote = remote
|
||||
_set_state, _write_log, _show_confirm, _hide_confirm = ui.set_state, ui.write_log, ui.show_confirm, ui.hide_confirm
|
||||
|
||||
from avatar import ipixel
|
||||
ipixel.panel = ipixel.IPixel(settings, ui.write_log)
|
||||
ipixel.panel.start()
|
||||
ui._app.aboutToQuit.connect(ipixel.panel.stop)
|
||||
|
||||
def set_state(state: str) -> None:
|
||||
_set_state(state); remote.on_state(state)
|
||||
try:
|
||||
ipixel.panel.on_state(state)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def write_log(text: str) -> None:
|
||||
_write_log(text); remote.on_log(text)
|
||||
|
||||
Reference in new issue
Block a user