summaryrefslogtreecommitdiffstats
path: root/controller.cpp
blob: 6a4b9008a60dcf7c71452656a3ed24f2161f0b02 (plain)
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
#include "Arduino.h"
#include "controller.h"


Controller::Controller(MP3Controller *mp3Controller) {
  this->mp3Controller = mp3Controller;
}

void Controller::next() {
  mp3Controller->nextFile();
}

void Controller::nextS() {
  mp3Controller->nextSection();
}

void Controller::previousS() {
  mp3Controller->previousSection();
}

void Controller::previous() {
  mp3Controller->previousFile();
}

void Controller::setRoot(String newRoot) { root = newRoot; } 
String Controller::getRoot() { return root; }