Library for SOMO II sound module (http://www.4dsystems.com.au/product/SOMO_II/) For use with stateScript (https://developer.mbed.org/users/mkarlsso/code/stateScript_v2/)

Dependents:   stateScript_v2_karpovalab Nucleo_statescript stateScript_v2

Committer:
alustig3
Date:
Wed Apr 26 19:02:16 2017 +0000
Revision:
1:5a7359b415c8
Parent:
0:a4f14eadd0df
Removed unused definitions

Who changed what in which revision?

UserRevisionLine numberNew 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