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.
SOMO.h@1:5a7359b415c8, 2017-04-26 (annotated)
- Committer:
- alustig3
- Date:
- Wed Apr 26 19:02:16 2017 +0000
- Revision:
- 1:5a7359b415c8
- Parent:
- 0:a4f14eadd0df
- Child:
- 2:b95724a49517
Removed unused definitions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alustig3 | 0:a4f14eadd0df | 1 | // SOMO II sound module http://www.4dsystems.com.au/product/SOMO_II/ |
alustig3 | 1:5a7359b415c8 | 2 | // Datasheet http://www.4dsystems.com.au/productpages/SOMO-II/downloads/SOMO-II_datasheet_R_1_2.pdf |
alustig3 | 1:5a7359b415c8 | 3 | |
alustig3 | 0:a4f14eadd0df | 4 | #ifndef SOMO_H |
alustig3 | 0:a4f14eadd0df | 5 | #define SOMO_H |
alustig3 | 0:a4f14eadd0df | 6 | |
alustig3 | 0:a4f14eadd0df | 7 | #include <mbed.h> |
alustig3 | 0:a4f14eadd0df | 8 | |
alustig3 | 0:a4f14eadd0df | 9 | //************************************************************************** |
alustig3 | 0:a4f14eadd0df | 10 | // class SOMO SOMO.h |
alustig3 | 0:a4f14eadd0df | 11 | // This is the main class. It shoud be used like this : SOMO audio(p13,p14); |
alustig3 | 0:a4f14eadd0df | 12 | |
alustig3 | 0:a4f14eadd0df | 13 | class SOMO{ |
alustig3 | 0:a4f14eadd0df | 14 | |
alustig3 | 0:a4f14eadd0df | 15 | public: |
alustig3 | 0:a4f14eadd0df | 16 | |
alustig3 | 0:a4f14eadd0df | 17 | SOMO(PinName TXPin, PinName RXPin); |
alustig3 | 0:a4f14eadd0df | 18 | |
alustig3 | 0:a4f14eadd0df | 19 | void init(); |
alustig3 | 0:a4f14eadd0df | 20 | |
alustig3 | 0:a4f14eadd0df | 21 | void playTrackName(char[]); |
alustig3 | 0:a4f14eadd0df | 22 | |
alustig3 | 0:a4f14eadd0df | 23 | void playTrackNum(unsigned char); |
alustig3 | 0:a4f14eadd0df | 24 | |
alustig3 | 0:a4f14eadd0df | 25 | void stopTrack(); |
alustig3 | 0:a4f14eadd0df | 26 | |
alustig3 | 0:a4f14eadd0df | 27 | void volume(unsigned char); |
alustig3 | 0:a4f14eadd0df | 28 | |
alustig3 | 0:a4f14eadd0df | 29 | void reset(); |
alustig3 | 0:a4f14eadd0df | 30 | |
alustig3 | 0:a4f14eadd0df | 31 | |
alustig3 | 0:a4f14eadd0df | 32 | protected : |
alustig3 | 0:a4f14eadd0df | 33 | |
alustig3 | 0:a4f14eadd0df | 34 | Serial _serialSOMO; |
alustig3 | 0:a4f14eadd0df | 35 | |
alustig3 | 0:a4f14eadd0df | 36 | }; |
alustig3 | 0:a4f14eadd0df | 37 | |
alustig3 | 0:a4f14eadd0df | 38 | #endif |