Module buzzer

Module buzzer 

Source
Expand description

Buzzer melody engine.

Pure-logic sequencer that plays short melodies on the T1000-E’s piezo buzzer (P0.25, enable P1.05 — see docs/hardware/t1000e-hardware.md). Symmetric in shape to the led module, but with tones instead of on/off pulses and with silence semantics.

UX rules:

  • Power-on: rising melody.
  • Power-off: falling melody.
  • Silence mode (toggled by double-press) suppresses the buzzer entirely. The LED is not affected by silence — that mapping belongs to the LED engine, not here.
  • Silence mid-melody cuts the current melody short, so the user’s silence request is honored immediately rather than waiting for the in-flight sequence to finish.

Pure logic over u64 milliseconds; no PWM, no GPIO. The real driver lives in umsh-bsp-t1000e and consumes BuzzerDecisions emitted by tick.

Modules§

melodies
Pre-baked melodies for the standard firmware events.

Structs§

BuzzerEngine
Buzzer melody engine.
Melody
A short fixed sequence of tones / rests.
Tone
One note in a melody. frequency_hz == 0 is a deliberate rest (silent gap between tones).

Enums§

BuzzerDecision
State to apply to the buzzer driver right now.