Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Embed: (wiki syntax)

« Back to documentation index

Sound Class Reference

Sound Class Reference

Sound uses a piezo buzzer connect to a PWMOut to output sound. More...

#include <Music.h>

Public Member Functions

 ~Sound ()
 Destructor.
void playNote (Note &note)
 Plays the given note.

Detailed Description

Sound uses a piezo buzzer connect to a PWMOut to output sound.

Definition at line 19 of file Music.h.


Constructor & Destructor Documentation

~Sound (  )

Destructor.

Definition at line 10 of file Music.cpp.


Member Function Documentation

void playNote ( Note note )

Plays the given note.

Parameters:
noteThe note to be played.

Definition at line 15 of file Music.cpp.