demo.mp4
This example uses an RMT transmitter to generate pulses at a specific frequency to play a song on a passive buzzer.
Part of the code/songs was translated from C to Rust from this repository.
- Rotate left/right to change the song.
- Display the index of the song on the 4-digit 7-segment display.
- Push the rotary encoder button to stop the song.
To run the example, use the following command:
cargo run -p passive-buzzer
- Active buzzer is louder than passive one.
- These buzzers have 3 pins, but I have not figured out what is the middle pin used for.