2023-08-19 18:34:10 +02:00
|
|
|
#ifndef GLOBALVARS
|
|
|
|
#define GLOBALVARS
|
|
|
|
|
|
|
|
/* class-types from header files */
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <ESP8266WebServer.h>
|
|
|
|
#include <ezTime.h>
|
|
|
|
|
|
|
|
#define DEBUG 1 // 1 for development, 0 for production
|
|
|
|
|
|
|
|
#if DEBUG == 1
|
|
|
|
#define debug(debugMSG...) Serial.print(debugMSG)
|
|
|
|
#define debugln(debugMSG...) Serial.println(debugMSG)
|
|
|
|
#else
|
|
|
|
#define debug(debugMSG...)
|
|
|
|
#define debugln(debugMSG...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* global vars */
|
|
|
|
extern ESP8266WebServer server;
|
|
|
|
extern Timezone myTime;
|
|
|
|
extern char time_all[8][8][3];
|
2023-08-19 19:19:25 +02:00
|
|
|
extern char stat[1][4];
|
2023-08-19 18:34:10 +02:00
|
|
|
extern char settings_html[];
|
|
|
|
extern char home_html[];
|
|
|
|
extern bool override[];
|
|
|
|
extern const unsigned int pins[];
|
2023-08-19 19:19:25 +02:00
|
|
|
extern int temperatureSet;
|
|
|
|
extern int temperature;
|
2023-08-19 18:34:10 +02:00
|
|
|
|
|
|
|
#endif
|