feat(simulator): add GUI runner, stubs, and workspace assets

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>
This commit is contained in:
2026-05-04 22:48:54 +12:00
parent 7ce56b64df
commit 42c14361e8
20 changed files with 513 additions and 0 deletions

18
stubs/machine.py Normal file
View File

@@ -0,0 +1,18 @@
"""CPython stub for MicroPython `machine` (led-simulator)."""
class Pin:
OUT = 1
IN = 0
def __init__(self, pin_id, mode=None, *, pull=None, value=None):
self.id = pin_id
self.mode = mode
class WDT:
def __init__(self, timeout=10000):
self._timeout = timeout
def feed(self):
pass