Professional Documents
Culture Documents
ESP8266 LED Matrix Bar Weather Station
ESP8266 LED Matrix Bar Weather Station
#include <ESP8266WiFi.h>
#include "Config.h"
#include "WiFi_Setup.h"
// Shields: ================================================================
#ifdef USE_DS18B20
#include "DS18B20.h"
#endif
#ifdef USE_DHT
#include "DHT.h"
#endif
#ifdef USE_DHT12
#include "DHT12.h"
#endif
#ifdef USE_RGB_LED_NEOPIXEL
#include "WS2812B_NeoPixel.h"
#endif
#ifdef USE_RGB_LED_STRIP_DRIVER
#include "LEDStrip.h"
#endif
// =========================================================================
#ifdef USE_LEDMATRIX_CLOCKWEATHER
#include "LEDMatrix_ClockWeather.h"
#endif
#ifdef USE_WEB_SERVER
#include "Web_Server.h"
#endif
#ifdef USE_MQTT
#include "MQTT.h"
#endif
int ScrollingMessage = 0;
int weatherScrollInterval = WEATHER_SCROLL_INTERVAL;
int freq[] = {1047, 1175, 1319, 1397, 1568, 1760, 1976, 2093};
String note[] = {"C6", "D6", "E6", "F6", "G6", "A6", "B6", "C7"};
int alarm_action = 1;
String alarm_message = "";
String onTimeMessage = OnTIME_MESSAGE;
int timer_action_start = 1;
int timer_action_stop = 1;
String timerStartMessage = TIMER_START_MESSAGE;
String timerStopMessage = TIMER_STOP_MESSAGE;
WiFi_setup();
// Shields =================================================================
#ifdef USE_DS18B20
DS18B20_setup();
#endif
#ifdef USE_DHT
DHT_setup();
#endif
#ifdef USE_DHT12
DHT12_setup();
#endif
#ifdef USE_RGB_LED_NEOPIXEL
NeoPixel_setup();
#endif
#ifdef USE_RGB_LED_STRIP_DRIVER
led.setColor();
#endif
// =========================================================================
#ifdef USE_LEDMATRIX_CLOCKWEATHER
LEDMatrix_ClockWeather_setup();
#endif
#ifdef USE_WEB_SERVER
Webserver_setup();
#endif
#ifdef USE_MQTT
MQTT_setup();
#endif
}