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.
main.cpp@2:95a0eedf3b20, 2019-07-22 (annotated)
- Committer:
- joshdavy
- Date:
- Mon Jul 22 11:12:40 2019 +0000
- Revision:
- 2:95a0eedf3b20
a
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| joshdavy | 2:95a0eedf3b20 | 1 | #include "mbed.h" |
| joshdavy | 2:95a0eedf3b20 | 2 | #include "Music.h" |
| joshdavy | 2:95a0eedf3b20 | 3 | #include "SoundData.h" |
| joshdavy | 2:95a0eedf3b20 | 4 | |
| joshdavy | 2:95a0eedf3b20 | 5 | Music music; |
| joshdavy | 2:95a0eedf3b20 | 6 | int main() { |
| joshdavy | 2:95a0eedf3b20 | 7 | music.init(sound_data,NUM_ELEMENTS); |
| joshdavy | 2:95a0eedf3b20 | 8 | while (1) { |
| joshdavy | 2:95a0eedf3b20 | 9 | music.play_next(); |
| joshdavy | 2:95a0eedf3b20 | 10 | wait_ms(1); |
| joshdavy | 2:95a0eedf3b20 | 11 | } |
| joshdavy | 2:95a0eedf3b20 | 12 | } |