Library to control the mp3-tf-16p
Diff: MP3_TF_16P.h
- Revision:
- 2:4697650da797
- Parent:
- 1:c76171b5e9df
--- a/MP3_TF_16P.h Fri Mar 12 12:35:52 2021 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -#ifndef MBED_MP3_TF_16P_H -#define MBED_MP3_TF_16P_H - -#include "mbed.h" - -class MP3_TF_16P { - - public: - - MP3_TF_16P(PinName PinTX, PinName PinRX); - - void PlayTrackNumber(uint16_t Number); - void SetVolume(uint16_t Value); - void PausePlay(); - void RepeatPlay(uint16_t Number); - uint16_t GetNumberOfFiles(); - - - - uint8_t ReceivedStack[10]; - - private: - - uint16_t numberoffiles; - Serial SerialPort; - - uint8_t Stack[10]; - - void SendStack(); - void CalculateCheckSum(); - void PutUint16InArray(uint16_t number, uint8_t PlaceHighByte, uint8_t PlaceLowByte); - - - void Rx_interrupt(); - - - -}; - -#endif \ No newline at end of file