summaryrefslogtreecommitdiffstats
path: root/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cpp')
-rw-r--r--controller.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/controller.cpp b/controller.cpp
new file mode 100644
index 0000000..6a4b900
--- /dev/null
+++ b/controller.cpp
@@ -0,0 +1,26 @@
1#include "Arduino.h"
2#include "controller.h"
3
4
5Controller::Controller(MP3Controller *mp3Controller) {
6 this->mp3Controller = mp3Controller;
7}
8
9void Controller::next() {
10 mp3Controller->nextFile();
11}
12
13void Controller::nextS() {
14 mp3Controller->nextSection();
15}
16
17void Controller::previousS() {
18 mp3Controller->previousSection();
19}
20
21void Controller::previous() {
22 mp3Controller->previousFile();
23}
24
25void Controller::setRoot(String newRoot) { root = newRoot; }
26String Controller::getRoot() { return root; }