metronome/rust/pm-kit/Cargo.toml
Me Here 0c788b1153 pm-kit: live metronome — real tracks, clock, audio clicks, controls, view toggle
The firmware is now an actual metronome (not a static screen):
- embedded-alloc heap → parses tracks with track-format on-device.
- 4 built-in grooves; clock-driven from the Timer; audio clicks on the master
  lane's hits via the GP13 PWM (accent louder/longer), short edge-triggered pulses.
- Controls: A = play/stop, B = grid/notation view; joystick (rotated 90° CCW)
  up/down = tempo +/-, left/right = prev/next groove.
- Renders draw_metronome or draw_notation; a cheap draw_progress strip animates the
  bar position every frame (full redraw only on change → no flicker).
- Robust: all input reads use unwrap_or (no panics in the loop) — addresses the
  self-test crash (likely an ADC unwrap on WouldBlock) and the continuous-buzzer.

Compile + simulator verified (grid renders all 4 grooves incl. triplets/polymeter).
NEEDS ON-DEVICE CHECK: audio timing, joystick directions, and that the crash is gone.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 00:18:28 -05:00

23 lines
664 B
TOML

[package]
name = "pm-kit"
version = "0.1.0"
edition = "2021"
description = "PM_K-1 firmware (RP2350 / Pico 2). Stage 3 bring-up: boot blink → display → drivers + pm-core."
[dependencies]
rp235x-hal = { version = "0.3", features = ["binary-info", "critical-section-impl", "rt"] }
cortex-m-rt = "0.7"
panic-halt = "1"
embedded-hal = "1"
embedded-hal-0-2 = { package = "embedded-hal", version = "0.2.7" } # ADC OneShot trait (rp235x-hal ADC)
embedded-hal-bus = "0.2"
mipidsi = "0.9"
embedded-graphics = "0.8"
pm-ui = { path = "../pm-ui" }
track-format = { path = "../track-format" }
embedded-alloc = "0.6"
[profile.release]
opt-level = "s"
lto = true
debug = 2