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
SOMO.h
- Committer:
- alustig3
- Date:
- 2017-04-26
- Revision:
- 1:5a7359b415c8
- Parent:
- 0:a4f14eadd0df
File content as of revision 1:5a7359b415c8:
// SOMO II sound module http://www.4dsystems.com.au/product/SOMO_II/ // Datasheet http://www.4dsystems.com.au/productpages/SOMO-II/downloads/SOMO-II_datasheet_R_1_2.pdf #ifndef SOMO_H #define SOMO_H #include <mbed.h> //************************************************************************** // class SOMO SOMO.h // This is the main class. It shoud be used like this : SOMO audio(p13,p14); class SOMO{ public: SOMO(PinName TXPin, PinName RXPin); void init(); void playTrackName(char[]); void playTrackNum(unsigned char); void stopTrack(); void volume(unsigned char); void reset(); protected : Serial _serialSOMO; }; #endif