diff --git a/.cursor/rules/led-driver.mdc b/.cursor/rules/led-driver.mdc new file mode 100644 index 0000000..99fae3c --- /dev/null +++ b/.cursor/rules/led-driver.mdc @@ -0,0 +1,45 @@ +--- +description: led-driver — MicroPython ESP32: mpremote, imports, layout, I/O, no pycache in src +globs: led-driver/** +alwaysApply: false +--- + +# led-driver (MicroPython / ESP32) + +## Device and tests + +1. Validate **MicroPython behaviour** under **`led-driver/`** with **`mpremote connect …`** on the chip. Host **`python3`** does **not** prove the firmware build. + +2. **Execution target is fixed:** treat **`led-driver/`** code as firmware that runs **only on MicroPython ESP32 devices**. Do **not** run `led-driver/src/main.py` (or other firmware modules) with host CPython as a normal execution path. + +3. **Flow:** `mpremote connect cp :` then `run