From 2ac964907cbd0028206db8109c0ca75c08d67dd9 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Wed, 24 Jun 2026 04:24:32 -0700 Subject: [PATCH] refactor: rename sketch to sketch.ino, add flash-sketch recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Permanent rename: led-matrix-bridge.ino → sketch.ino (Arduino CLI convention) - Add just flash-sketch recipe for compiling/flashing MCU via board's arduino-cli - Run via post-merge hooks for auto-deploy --- justfile | 6 ++++++ sketch/{led-matrix-bridge.ino => sketch.ino} | 0 2 files changed, 6 insertions(+) rename sketch/{led-matrix-bridge.ino => sketch.ino} (100%) 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