metronome/rust/pm-grid
Me Here dd27d553fe pm-grid: live re-read of programs.json (no reboot needed)
When the host writes the drive (SCSI Write sets a dirty flag) and the drive has
been idle ~1.5s AND playback is stopped, the loop re-reads programs.json and
rebuilds the set lists (reload_user) -> a dropped file applies without a reboot.

Read-only path (split read_programs_json out of read_user_setlists; the format
flash-write only happens at boot), so no FAT-corruption risk from dual access.

Note on the recommended write path: the device deliberately does NOT write the
shared FAT while the host has it mounted (that corrupts the host cache - same
reason CircuitPython is one-direction-at-a-time). The practice log should instead
go to the editor via LOGSYNC (0x45); settings.json *read* (device read-only) is a
safe follow-up. Documented in docs/rust-port.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 10:19:43 -05:00
..
.cargo pm-grid: USB-MIDI audio + make Rust the shipping Grid firmware 2026-06-03 15:19:38 -05:00
src pm-grid: live re-read of programs.json (no reboot needed) 2026-06-04 10:19:43 -05:00
.gitignore pm-grid: name the drive PM_G-1 + read set lists from it (on-device FAT) 2026-06-04 07:29:30 -05:00
build.rs Add pm-grid: Rust firmware for the Pico Scroll Pack (RP2040) 2026-06-03 07:22:48 -05:00
build.sh pm-grid: USB-MIDI audio + make Rust the shipping Grid firmware 2026-06-03 15:19:38 -05:00
Cargo.toml pm-grid: name the drive PM_G-1 + read set lists from it (on-device FAT) 2026-06-04 07:29:30 -05:00
memory.x pm-grid: USB Mass Storage (composite MIDI + 1MB flash-backed drive) 2026-06-03 16:25:51 -05:00
uf2.py Add pm-grid: Rust firmware for the Pico Scroll Pack (RP2040) 2026-06-03 07:22:48 -05:00