Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Music Class Reference
#include <Music.h>
Public Member Functions | |
| Music () | |
| Constructor (no paramateters) | |
| ~Music () | |
| Deconstructor. | |
| void | init (const int *data, int length) |
| Initialiser. | |
| void | play_next () |
| Plays the next sound sample. | |
Detailed Description
Music Class.
The Music Class handles the playing of the background music while playing the game. It uses the buzzer with PWM audio to play complex waveforms through a standard 5V pin of the board. See presentation for more detail how this works.
- Version:
- 1.0
- Date:
- April 2019
Definition at line 21 of file Music.h.
Constructor & Destructor Documentation
Member Function Documentation
| void init | ( | const int * | data, |
| int | length | ||
| ) |
Generated on Fri Jul 15 2022 16:35:57 by
1.7.2