Files
led-simulator/stubs/machine.py
Jimmy 42c14361e8 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>
2026-05-04 22:48:54 +12:00

19 lines
336 B
Python

"""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