-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopaq.ino
79 lines (64 loc) · 1.92 KB
/
opaq.ino
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Opaq is an Open AQuarium Controller firmware. It has been developed for
* supporting several aquarium devices such as ligh dimmers, power management
* outlets, water sensors, and peristaltic pumps. The main purpose is to
* control fresh and salt water aquariums.
*
* Copyright (c) 2015 Andre Pedro. All rights reserved.
*
* This file is part of opaq firmware for aquarium controllers.
*
* opaq firmware is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* opaq firmware is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with opaq firmware. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "Opaq_c1.h"
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
//#include <ESPAsyncWebServer.h>
#include <ESP8266AVRISP.h>
#include <ESP8266httpUpdate.h>
#include <ArduinoJson.h>
//#include <Hash.h>
#include <HashMap.h>
#include <LinkedList.h>
#include <Adafruit_ILI9341.h>
#include <Adafruit_GFX.h>
#include <Fonts/FreeSans9pt7b.h>
#include <RtcDateTime.h>
#include <protocol.h>
#include <memory>
#include <libtar.h>
#if OPAQ_MDNS_RESPONDER
#include <ESP8266mDNS.h>
#endif
#if OPAQ_OTA_ARDUINO
//#include <ArduinoOTA.h>
#endif
#include <EEPROM.h>
#include <SPI.h>
#include <Wire.h>
#include <Ticker.h>
#define DEBUG
char *stack_start;
char *stack_task[NUM_TASKS] = {NULL};
void setup() {
char stack;
stack_start = &stack;
opaq_controller.setup_controller();
}
void loop() {
char stack;
stack_task[3] = &stack;
opaq_controller.run_controller();
}