Add host simulator scaffolding, examples, and docs so led-driver main can run end-to-end with MicroPython module stubs. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
240 B
Python
18 lines
240 B
Python
"""Host-only: led-simulator registers the Microdot app so Stop can call shutdown()."""
|
|
|
|
_app = None
|
|
|
|
|
|
def register_app(app):
|
|
global _app
|
|
_app = app
|
|
|
|
|
|
def get_app():
|
|
return _app
|
|
|
|
|
|
def clear_app():
|
|
global _app
|
|
_app = None
|