diff --git a/justfile b/justfile index 4d3f43b..195b6c0 100644 --- a/justfile +++ b/justfile @@ -338,6 +338,12 @@ kconfig: @ssh {{SSH_OPTS}} "{{BOARD_USER}}@{{BOARD_HOST}}" "\ zgrep -E 'CONFIG_USB_(GADGET|CONFIGFS|F_UAC1|F_MIDI|DWC3|F_ACC|F_SERIAL)' /proc/config.gz 2>/dev/null | awk -F= '{printf \" %-45s %s\\n\", \$1, \$2}'" +# Compile and flash the MCU sketch (LED matrix bridge) via SWD +flash-sketch: + @ssh {{SSH_OPTS}} "{{BOARD_USER}}@{{BOARD_HOST}}" "\ + cd {{REPO_DIR}} && \ + arduino-cli compile --upload --fqbn arduino:zephyr:unoq sketch/" + # Validate all .pd files using Conftest/OPA Rego policies validate: python3 pd-validator/validate.py pd/*.pd diff --git a/sketch/led-matrix-bridge.ino b/sketch/sketch.ino similarity index 100% rename from sketch/led-matrix-bridge.ino rename to sketch/sketch.ino