diff options
-rw-r--r-- | schack.ino | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,8 @@ | |||
1 | #include "controller.h" | 1 | #include "controller.h" |
2 | #include "mp3player.h" | 2 | #include "mp3player.h" |
3 | #include "webserver.h" | ||
3 | 4 | ||
5 | WebServer *webserver; | ||
4 | MP3Player *mp3Player; | 6 | MP3Player *mp3Player; |
5 | Controller *controller; | 7 | Controller *controller; |
6 | 8 | ||
@@ -10,9 +12,11 @@ void setup() { | |||
10 | 12 | ||
11 | mp3Player = new MP3Player(); | 13 | mp3Player = new MP3Player(); |
12 | controller = new Controller(mp3Player); | 14 | controller = new Controller(mp3Player); |
15 | webserver = new WebServer(controller); | ||
13 | } | 16 | } |
14 | 17 | ||
15 | 18 | ||
16 | void loop() { | 19 | void loop() { |
17 | mp3Player->loop(); | 20 | mp3Player->loop(); |
21 | webserver->loop(); | ||
18 | } | 22 | } |