-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMP3Notify.h
More file actions
33 lines (26 loc) · 781 Bytes
/
Copy pathMP3Notify.h
File metadata and controls
33 lines (26 loc) · 781 Bytes
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
#include "Context.h"
class Mp3Notify {
public:
static void OnError(uint16_t errorCode) {
// see DfMp3_Error for code meaning
Serial.print(F("Com Error "));
Serial.println(errorCode);
}
static void OnPlayFinished(uint16_t globalTrack, void *ctx) {
Serial.print(F("Play finished for #"));
Serial.println(globalTrack);
handlePlayFinished((Context *)ctx);
}
static void OnCardOnline(uint16_t code) {
Serial.print(F("Card online "));
Serial.println(code);
}
static void OnCardInserted(uint16_t code) {
Serial.print(F("Card inserted "));
Serial.println(code);
}
static void OnCardRemoved(uint16_t code) {
Serial.print(F("Card removed "));
Serial.println(code);
}
};