-
Notifications
You must be signed in to change notification settings - Fork 24
/
MusicPlayerShield.h
57 lines (43 loc) · 1.05 KB
/
MusicPlayerShield.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
Project: 1Sheeld Library
File: MusicPlayerShield.h
Version: 1.0
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.5
*/
#ifndef MusicPlayerShield_h
#define MusicPlayerShield_h
#include "ShieldParent.h"
//Output Functions ID's
#define MUSIC_STOP 0x01
#define MUSIC_PLAY 0x02
#define MUSIC_PAUSE 0x03
#define MUSIC_PREVIOUS 0x04
#define MUSIC_NEXT 0x05
#define MUSIC_SEEK_FORWARD 0x06
#define MUSIC_SEEK_BACKWARD 0x07
#define MUSIC_VOLUME 0x08
#define MUSIC_PLAY_FILE_NAME 0x09
#define MUSIC_PLAYD_FILE_INDEX 0x0A
class MusicPlayerShieldClass : public ShieldParent
{
public:
//Constructor
MusicPlayerShieldClass():ShieldParent(MUSIC_PLAYER_ID){};
//Setters
void stop();
void play();
void play(const char *);
void play(int);
void pause();
void previous();
void next();
void seekForward(byte );
void seekBackward(byte );
void setVolume(byte );
private:
};
//Extern Object
extern MusicPlayerShieldClass MusicPlayer;
#endif