dclause / dclause/hermes-five

Add support for passive buzzers with note/melody playback

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
feature request good first issue
Dominant language
Rust
Stars
38
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Motivation:**
Passive buzzers are commonly used for generating tones, beeps, or simple melodies in embedded systems.
Supporting them would allow users to easily play musical notes or sound alerts using standard GPIO/PWM outputs.

**Proposal:**
Introduce a passive buzzer (named `Buzzer` or `Tone` ?) component capable of:
- [ ] Playing individual notes with configurable frequency and duration
- [ ] Playing melodies based on a standard format (e.g., [Robson Couto’s melody format](https://github.com/robsoncouto/arduino-songs))

**Format Consideration:**
Robson Couto’s format (e.g., "NOTE_E5,8, NOTE_D5,8, NOTE_C5,4") is simple and Arduino-compatible.
Alternative formats (e.g., RTTTL or Music Macro Language) can be evaluated for future extensibility.

**Scope:**
- Buzzer abstraction over GPIO or PWM
- Basic melody parser/interpreter
- Non-blocking (task) playback support

**Impact:**
Adds a new component. No impact on existing APIs.

**Future Extensions:**
- Support for RTTTL or external melody files ?
- Dynamic tempo changes ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.