The buzzer
is an object representing the sound buzzer on the Circuit Playground, which lets you play simple sounds and notes. Internally this buzzer is connected to pin 5.
buzzer.frequency()
- Plays a sound at a given frequencybuzzer.note()
- Play a notebuzzer.stop()
- Stop buzzingbuzzer.play()
- Play an array of notes, one at a timeFound a bug in the documentation? Let us know at documentation@code.org