Honest answer to 'do the inputs/speaker work?': they had NO Rust code. Add the drivers and a live self-test: buttons GP15/GP14 (pull-up), joystick GP26/GP27 via ADC, speaker GP13 via PWM (~2 kHz click on button press). draw_peripheral_test (pm-ui) shows button states, joystick dot + X/Y values, and beep activity; layout verified in the simulator (uisim --bin periphsim) before flashing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
597 B
TOML
21 lines
597 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" }
|
|
|
|
[profile.release]
|
|
opt-level = "s"
|
|
lto = true
|
|
debug = 2
|