diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2022-12-22 19:12:53 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2022-12-22 19:12:53 +0100 |
commit | 966ad95ea3741a10f697b563873a613823ff0dfa (patch) | |
tree | f901ec8503441fba79cb9bb4c2ca54155dbcd093 | |
parent | b6d1df48244db14d693c286445ca1384341ae0c1 (diff) | |
download | shack-966ad95ea3741a10f697b563873a613823ff0dfa.tar.gz shack-966ad95ea3741a10f697b563873a613823ff0dfa.zip |
Add webserver to sketch
-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 | } |