summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-12-22 19:12:53 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2022-12-22 19:12:53 +0100
commit966ad95ea3741a10f697b563873a613823ff0dfa (patch)
treef901ec8503441fba79cb9bb4c2ca54155dbcd093
parentb6d1df48244db14d693c286445ca1384341ae0c1 (diff)
downloadshack-966ad95ea3741a10f697b563873a613823ff0dfa.tar.gz
shack-966ad95ea3741a10f697b563873a613823ff0dfa.zip
Add webserver to sketch
-rw-r--r--schack.ino4
1 files changed, 4 insertions, 0 deletions
diff --git a/schack.ino b/schack.ino
index 2cc3da2..6ca97c1 100644
--- a/schack.ino
+++ b/schack.ino
@@ -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
5WebServer *webserver;
4MP3Player *mp3Player; 6MP3Player *mp3Player;
5Controller *controller; 7Controller *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
16void loop() { 19void loop() {
17 mp3Player->loop(); 20 mp3Player->loop();
21 webserver->loop();
18} 22}