ESP8266-IOT-timer/src/globalvars.h

32 lines
692 B
C
Raw Normal View History

#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];
extern char stat[1][4];
extern char settings_html[];
extern char home_html[];
extern bool override[];
extern const unsigned int pins[];
extern int temperatureSet;
extern int temperature;
#endif