forked from Integreight/1Sheeld-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MusicPlayerShield.h
53 lines (39 loc) · 956 Bytes
/
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
/*
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
class MusicPlayerShieldClass : public ShieldParent
{
public:
//Constructor
MusicPlayerShieldClass():ShieldParent(MUSIC_PLAYER_ID){};
//Setters
void stop();
void play();
void pause();
void previous();
void next();
void seekForward(byte );
void seekBackward(byte );
void setVolume(byte );
private:
};
//Extern Object
extern MusicPlayerShieldClass MusicPlayer;
#endif