Rename files to remove wled_
This commit is contained in:
parent
b8342f1c9c
commit
f35ab125ec
@ -1,9 +1,9 @@
|
|||||||
#include "wled_alexa.h"
|
#include "alexa.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_ALEXA
|
#ifndef WLED_DISABLE_ALEXA
|
||||||
void onAlexaChange(EspalexaDevice* dev);
|
void onAlexaChange(EspalexaDevice* dev);
|
@ -1,17 +1,17 @@
|
|||||||
#ifndef WLED_ALEXA_H
|
#ifndef WLED_ALEXA_H
|
||||||
#define WLED_ALEXA_H
|
#define WLED_ALEXA_H
|
||||||
/*
|
/*
|
||||||
* Alexa Voice On/Off/Brightness Control. Emulates a Philips Hue bridge to Alexa.
|
* Alexa Voice On/Off/Brightness Control. Emulates a Philips Hue bridge to Alexa.
|
||||||
*
|
*
|
||||||
* This was put together from these two excellent projects:
|
* This was put together from these two excellent projects:
|
||||||
* https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch
|
* https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch
|
||||||
* https://github.com/probonopd/ESP8266HueEmulator
|
* https://github.com/probonopd/ESP8266HueEmulator
|
||||||
*/
|
*/
|
||||||
#include "src/dependencies/espalexa/EspalexaDevice.h"
|
#include "src/dependencies/espalexa/EspalexaDevice.h"
|
||||||
|
|
||||||
void onAlexaChange(EspalexaDevice* dev);
|
void onAlexaChange(EspalexaDevice* dev);
|
||||||
void alexaInit();
|
void alexaInit();
|
||||||
void handleAlexa();
|
void handleAlexa();
|
||||||
void onAlexaChange(EspalexaDevice* dev);
|
void onAlexaChange(EspalexaDevice* dev);
|
||||||
|
|
||||||
#endif // WLED_ALEXA_H
|
#endif // WLED_ALEXA_H
|
@ -1,9 +1,9 @@
|
|||||||
#include "wled_blynk.h"
|
#include "blynk.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "src/dependencies/blynk/Blynk/BlynkHandlers.h"
|
#include "src/dependencies/blynk/Blynk/BlynkHandlers.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
|
|
||||||
uint16_t blHue = 0;
|
uint16_t blHue = 0;
|
||||||
byte blSat = 255;
|
byte blSat = 255;
|
@ -1,13 +1,13 @@
|
|||||||
#ifndef WLED_BLYNK_H
|
#ifndef WLED_BLYNK_H
|
||||||
#define WLED_BLYNK_H
|
#define WLED_BLYNK_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Remote light control with the free Blynk app
|
* Remote light control with the free Blynk app
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void initBlynk(const char* auth);
|
void initBlynk(const char* auth);
|
||||||
void handleBlynk();
|
void handleBlynk();
|
||||||
void updateBlynk();
|
void updateBlynk();
|
||||||
// Unsure if the macro expansions need to accessed through the declaration... TODO
|
// Unsure if the macro expansions need to accessed through the declaration... TODO
|
||||||
|
|
||||||
#endif //WLED_BLYNK_H
|
#endif //WLED_BLYNK_H
|
@ -1,8 +1,8 @@
|
|||||||
#include "wled_button.h"
|
#include "button.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_set.h"
|
#include "set.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Physical IO
|
* Physical IO
|
@ -1,12 +1,12 @@
|
|||||||
#ifndef WLED_BUTTON_H
|
#ifndef WLED_BUTTON_H
|
||||||
#define WLED_BUTTON_H
|
#define WLED_BUTTON_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Physical IO
|
* Physical IO
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void shortPressAction();
|
void shortPressAction();
|
||||||
void handleButton();
|
void handleButton();
|
||||||
void handleIO();
|
void handleIO();
|
||||||
|
|
||||||
#endif // WLED_BUTTON_H
|
#endif // WLED_BUTTON_H
|
@ -1,4 +1,4 @@
|
|||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
|
||||||
void colorFromUint32(uint32_t in, bool secondary)
|
void colorFromUint32(uint32_t in, bool secondary)
|
@ -1,20 +1,20 @@
|
|||||||
#ifndef WLED_COLORS_H
|
#ifndef WLED_COLORS_H
|
||||||
#define WLED_COLORS_H
|
#define WLED_COLORS_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Color conversion methods
|
* Color conversion methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void colorFromUint32(uint32_t in, bool secondary = false);
|
void colorFromUint32(uint32_t in, bool secondary = false);
|
||||||
void colorFromUint24(uint32_t in, bool secondary = false);
|
void colorFromUint24(uint32_t in, bool secondary = false);
|
||||||
void relativeChangeWhite(int8_t amount, byte lowerBoundary = 0);
|
void relativeChangeWhite(int8_t amount, byte lowerBoundary = 0);
|
||||||
void colorHStoRGB(uint16_t hue, byte sat, byte* rgb); //hue, sat to rgb
|
void colorHStoRGB(uint16_t hue, byte sat, byte* rgb); //hue, sat to rgb
|
||||||
void colorCTtoRGB(uint16_t mired, byte* rgb); //white spectrum to rgb
|
void colorCTtoRGB(uint16_t mired, byte* rgb); //white spectrum to rgb
|
||||||
|
|
||||||
void colorXYtoRGB(float x, float y, byte* rgb); // only defined if huesync disabled TODO
|
void colorXYtoRGB(float x, float y, byte* rgb); // only defined if huesync disabled TODO
|
||||||
void colorRGBtoXY(byte* rgb, float* xy); // only defined if huesync disabled TODO
|
void colorRGBtoXY(byte* rgb, float* xy); // only defined if huesync disabled TODO
|
||||||
|
|
||||||
void colorFromDecOrHexString(byte* rgb, char* in);
|
void colorFromDecOrHexString(byte* rgb, char* in);
|
||||||
void colorRGBtoRGBW(byte* rgb); //rgb to rgbw (http://codewelt.com/rgbw). (RGBW_MODE_LEGACY)
|
void colorRGBtoRGBW(byte* rgb); //rgb to rgbw (http://codewelt.com/rgbw). (RGBW_MODE_LEGACY)
|
||||||
|
|
||||||
#endif //WLED_COLORS_H
|
#endif //WLED_COLORS_H
|
@ -1,4 +1,4 @@
|
|||||||
#include "wled_cronixie.h"
|
#include "cronixie.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_CRONIXIE
|
#ifndef WLED_DISABLE_CRONIXIE
|
@ -1,13 +1,13 @@
|
|||||||
#ifndef WLED_CRONIXIE_H
|
#ifndef WLED_CRONIXIE_H
|
||||||
#define WLED_CRONIXIE_H
|
#define WLED_CRONIXIE_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Support for the Cronixie clock
|
* Support for the Cronixie clock
|
||||||
*/
|
*/
|
||||||
|
|
||||||
byte getSameCodeLength(char code, int index, char const cronixieDisplay[]);
|
byte getSameCodeLength(char code, int index, char const cronixieDisplay[]);
|
||||||
void setCronixie();
|
void setCronixie();
|
||||||
void _overlayCronixie();
|
void _overlayCronixie();
|
||||||
void _drawOverlayCronixie();
|
void _drawOverlayCronixie();
|
||||||
|
|
||||||
#endif // WLED_CRONIXIE_H
|
#endif // WLED_CRONIXIE_H
|
@ -1,4 +1,4 @@
|
|||||||
#include "wled_dmx.h"
|
#include "dmx.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
|
||||||
#ifdef WLED_ENABLE_DMX
|
#ifdef WLED_ENABLE_DMX
|
@ -1,11 +1,11 @@
|
|||||||
#ifndef WLED_DMX_H
|
#ifndef WLED_DMX_H
|
||||||
#define WLED_DMX_H
|
#define WLED_DMX_H
|
||||||
/*
|
/*
|
||||||
* Support for DMX via MAX485.
|
* Support for DMX via MAX485.
|
||||||
* Needs the espdmx library. You might have to change the output pin within the library. Sketchy, i know.
|
* Needs the espdmx library. You might have to change the output pin within the library. Sketchy, i know.
|
||||||
* https://github.com/Rickgg/ESP-Dmx
|
* https://github.com/Rickgg/ESP-Dmx
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void handleDMX();
|
void handleDMX();
|
||||||
|
|
||||||
#endif //WLED_DMX_H
|
#endif //WLED_DMX_H
|
@ -1,9 +1,9 @@
|
|||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_cronixie.h"
|
#include "cronixie.h"
|
||||||
#include "wled_ntp.h"
|
#include "ntp.h"
|
||||||
#include "wled_set.h"
|
#include "set.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
|
|
||||||
|
|
||||||
//eeprom Version code, enables default settings instead of 0 init on update
|
//eeprom Version code, enables default settings instead of 0 init on update
|
@ -1,23 +1,23 @@
|
|||||||
#ifndef WLED_EPPROM_H
|
#ifndef WLED_EPPROM_H
|
||||||
#define WLED_EPPROM_H
|
#define WLED_EPPROM_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Methods to handle saving and loading to non-volatile memory
|
* Methods to handle saving and loading to non-volatile memory
|
||||||
* EEPROM Map: https://github.com/Aircoookie/WLED/wiki/EEPROM-Map
|
* EEPROM Map: https://github.com/Aircoookie/WLED/wiki/EEPROM-Map
|
||||||
*/
|
*/
|
||||||
#define EEPSIZE 2560 //Maximum is 4096
|
#define EEPSIZE 2560 //Maximum is 4096
|
||||||
|
|
||||||
void commit();
|
void commit();
|
||||||
void clearEEPROM();
|
void clearEEPROM();
|
||||||
void writeStringToEEPROM(uint16_t pos, char* str, uint16_t len);
|
void writeStringToEEPROM(uint16_t pos, char* str, uint16_t len);
|
||||||
void readStringFromEEPROM(uint16_t pos, char* str, uint16_t len);
|
void readStringFromEEPROM(uint16_t pos, char* str, uint16_t len);
|
||||||
void saveSettingsToEEPROM();
|
void saveSettingsToEEPROM();
|
||||||
void loadSettingsFromEEPROM(bool first);
|
void loadSettingsFromEEPROM(bool first);
|
||||||
void savedToPresets();
|
void savedToPresets();
|
||||||
bool applyPreset(byte index, bool loadBri = true);
|
bool applyPreset(byte index, bool loadBri = true);
|
||||||
void savePreset(byte index, bool persist = true);
|
void savePreset(byte index, bool persist = true);
|
||||||
void loadMacro(byte index, char* m);
|
void loadMacro(byte index, char* m);
|
||||||
void applyMacro(byte index);
|
void applyMacro(byte index);
|
||||||
void saveMacro(byte index, String mc, bool persist = true); //only commit on single save, not in settings
|
void saveMacro(byte index, String mc, bool persist = true); //only commit on single save, not in settings
|
||||||
|
|
||||||
#endif //WLED_EPPROM_H
|
#endif //WLED_EPPROM_H
|
@ -1,7 +1,7 @@
|
|||||||
#include "wled_file.h"
|
#include "file.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_notify.h"
|
#include "notify.h"
|
||||||
|
|
||||||
//filesystem
|
//filesystem
|
||||||
#ifndef WLED_DISABLE_FILESYSTEM
|
#ifndef WLED_DISABLE_FILESYSTEM
|
@ -1,12 +1,12 @@
|
|||||||
#ifndef WLED_FILE_H
|
#ifndef WLED_FILE_H
|
||||||
#define WLED_FILE_H
|
#define WLED_FILE_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
/*
|
/*
|
||||||
* Utility for SPIFFS filesystem & Serial console
|
* Utility for SPIFFS filesystem & Serial console
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void handleSerial();
|
void handleSerial();
|
||||||
bool handleFileRead(AsyncWebServerRequest*, String path);
|
bool handleFileRead(AsyncWebServerRequest*, String path);
|
||||||
|
|
||||||
#endif // WLED_FILE_H
|
#endif // WLED_FILE_H
|
@ -1,9 +1,9 @@
|
|||||||
#include "wled_hue.h"
|
#include "hue.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_notify.h"
|
#include "notify.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_HUESYNC
|
#ifndef WLED_DISABLE_HUESYNC
|
||||||
|
|
@ -1,16 +1,16 @@
|
|||||||
#ifndef WLED_HUE_H
|
#ifndef WLED_HUE_H
|
||||||
#define WLED_HUE_H
|
#define WLED_HUE_H
|
||||||
/*
|
/*
|
||||||
* Sync to Philips hue lights
|
* Sync to Philips hue lights
|
||||||
*/
|
*/
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
class AsyncClient;
|
class AsyncClient;
|
||||||
|
|
||||||
void handleHue();
|
void handleHue();
|
||||||
void reconnectHue();
|
void reconnectHue();
|
||||||
void onHueError(void* arg, AsyncClient* client, int8_t error);
|
void onHueError(void* arg, AsyncClient* client, int8_t error);
|
||||||
void onHueConnect(void* arg, AsyncClient* client);
|
void onHueConnect(void* arg, AsyncClient* client);
|
||||||
void sendHuePoll();
|
void sendHuePoll();
|
||||||
void onHueData(void* arg, AsyncClient* client, void *data, size_t len);
|
void onHueData(void* arg, AsyncClient* client, void *data, size_t len);
|
||||||
|
|
||||||
#endif //WLED_HUE_H
|
#endif //WLED_HUE_H
|
@ -1,8 +1,8 @@
|
|||||||
#include "wled_ir.h"
|
#include "ir.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
|
|
||||||
#if defined(WLED_DISABLE_INFRARED)
|
#if defined(WLED_DISABLE_INFRARED)
|
||||||
void handleIR(){}
|
void handleIR(){}
|
@ -1,24 +1,24 @@
|
|||||||
#ifndef WLED_IR_H
|
#ifndef WLED_IR_H
|
||||||
#define WLED_IR_H
|
#define WLED_IR_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Infrared sensor support for generic 24/40/44 key RGB remotes
|
* Infrared sensor support for generic 24/40/44 key RGB remotes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool decodeIRCustom(uint32_t code);
|
bool decodeIRCustom(uint32_t code);
|
||||||
void relativeChange(byte* property, int8_t amount, byte lowerBoundary = 0, byte higherBoundary = 0xFF);
|
void relativeChange(byte* property, int8_t amount, byte lowerBoundary = 0, byte higherBoundary = 0xFF);
|
||||||
void changeEffectSpeed(int8_t amount);
|
void changeEffectSpeed(int8_t amount);
|
||||||
void changeEffectIntensity(int8_t amount);
|
void changeEffectIntensity(int8_t amount);
|
||||||
void decodeIR(uint32_t code);
|
void decodeIR(uint32_t code);
|
||||||
void decodeIR24(uint32_t code);
|
void decodeIR24(uint32_t code);
|
||||||
void decodeIR24OLD(uint32_t code);
|
void decodeIR24OLD(uint32_t code);
|
||||||
void decodeIR24CT(uint32_t code);
|
void decodeIR24CT(uint32_t code);
|
||||||
void decodeIR40(uint32_t code);
|
void decodeIR40(uint32_t code);
|
||||||
void decodeIR44(uint32_t code);
|
void decodeIR44(uint32_t code);
|
||||||
void decodeIR21(uint32_t code);
|
void decodeIR21(uint32_t code);
|
||||||
void decodeIR6(uint32_t code);
|
void decodeIR6(uint32_t code);
|
||||||
|
|
||||||
void initIR();
|
void initIR();
|
||||||
void handleIR();
|
void handleIR();
|
||||||
|
|
||||||
#endif //WLED_IR_H
|
#endif //WLED_IR_H
|
@ -1,7 +1,7 @@
|
|||||||
#include "wled_json.h"
|
#include "json.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
|
|
||||||
void deserializeSegment(JsonObject elem, byte it)
|
void deserializeSegment(JsonObject elem, byte it)
|
||||||
{
|
{
|
@ -1,21 +1,21 @@
|
|||||||
#ifndef WLED_JSON_H
|
#ifndef WLED_JSON_H
|
||||||
#define WLED_JSON_H
|
#define WLED_JSON_H
|
||||||
/*
|
/*
|
||||||
* JSON API (De)serialization
|
* JSON API (De)serialization
|
||||||
*/
|
*/
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "ESPAsyncWebServer.h"
|
#include "ESPAsyncWebServer.h"
|
||||||
#include "src/dependencies/json/ArduinoJson-v6.h"
|
#include "src/dependencies/json/ArduinoJson-v6.h"
|
||||||
#include "src/dependencies/json/AsyncJson-v6.h"
|
#include "src/dependencies/json/AsyncJson-v6.h"
|
||||||
#include "fx.h"
|
#include "fx.h"
|
||||||
// TODO: AsynicWebServerRequest conflict?
|
// TODO: AsynicWebServerRequest conflict?
|
||||||
|
|
||||||
void deserializeSegment(JsonObject elem, byte it);
|
void deserializeSegment(JsonObject elem, byte it);
|
||||||
bool deserializeState(JsonObject root);
|
bool deserializeState(JsonObject root);
|
||||||
void serializeSegment(JsonObject& root, WS2812FX::Segment& seg, byte id);
|
void serializeSegment(JsonObject& root, WS2812FX::Segment& seg, byte id);
|
||||||
void serializeState(JsonObject root);
|
void serializeState(JsonObject root);
|
||||||
void serializeInfo(JsonObject root);
|
void serializeInfo(JsonObject root);
|
||||||
void serveJson(AsyncWebServerRequest* request);
|
void serveJson(AsyncWebServerRequest* request);
|
||||||
void serveLiveLeds(AsyncWebServerRequest* request);
|
void serveLiveLeds(AsyncWebServerRequest* request);
|
||||||
|
|
||||||
#endif //WLED_JSON_H
|
#endif //WLED_JSON_H
|
@ -1,10 +1,10 @@
|
|||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_notify.h"
|
#include "notify.h"
|
||||||
#include "wled_blynk.h"
|
#include "blynk.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_mqtt.h"
|
#include "mqtt.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
|
|
||||||
void setValuesFromMainSeg()
|
void setValuesFromMainSeg()
|
||||||
{
|
{
|
@ -1,19 +1,19 @@
|
|||||||
#ifndef WLED_LED_H
|
#ifndef WLED_LED_H
|
||||||
#define WLED_LED_H
|
#define WLED_LED_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* LED methods
|
* LED methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void setValuesFromMainSeg();
|
void setValuesFromMainSeg();
|
||||||
void resetTimebase();
|
void resetTimebase();
|
||||||
void toggleOnOff();
|
void toggleOnOff();
|
||||||
void setAllLeds();
|
void setAllLeds();
|
||||||
void setLedsStandard(bool justColors = false);
|
void setLedsStandard(bool justColors = false);
|
||||||
bool colorChanged();
|
bool colorChanged();
|
||||||
void colorUpdated(int callMode);
|
void colorUpdated(int callMode);
|
||||||
void updateInterfaces(uint8_t callMode);
|
void updateInterfaces(uint8_t callMode);
|
||||||
void handleTransitions();
|
void handleTransitions();
|
||||||
void handleNightlight();
|
void handleNightlight();
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -1,10 +1,10 @@
|
|||||||
#include "wled_mqtt.h"
|
#include "mqtt.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_notify.h"
|
#include "notify.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
#include "wled_xml.h"
|
#include "xml.h"
|
||||||
#include "wled_set.h"
|
#include "set.h"
|
||||||
|
|
||||||
#ifdef WLED_ENABLE_MQTT
|
#ifdef WLED_ENABLE_MQTT
|
||||||
#define MQTT_KEEP_ALIVE_TIME 60 // contact the MQTT broker every 60 seconds
|
#define MQTT_KEEP_ALIVE_TIME 60 // contact the MQTT broker every 60 seconds
|
@ -1,9 +1,9 @@
|
|||||||
#ifndef WLED_MQTT_H
|
#ifndef WLED_MQTT_H
|
||||||
#define WLED_MQTT_H
|
#define WLED_MQTT_H
|
||||||
/*
|
/*
|
||||||
* MQTT communication protocol for home automation
|
* MQTT communication protocol for home automation
|
||||||
*/
|
*/
|
||||||
bool initMqtt();
|
bool initMqtt();
|
||||||
void publishMqtt();
|
void publishMqtt();
|
||||||
|
|
||||||
#endif //WLED_MQTT_H
|
#endif //WLED_MQTT_H
|
@ -1,7 +1,7 @@
|
|||||||
#include "wled_notify.h"
|
#include "notify.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "src/dependencies/e131/ESPAsyncE131.h"
|
#include "src/dependencies/e131/ESPAsyncE131.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
|
|
||||||
#define WLEDPACKETSIZE 29
|
#define WLEDPACKETSIZE 29
|
||||||
#define UDP_IN_MAXSIZE 1472
|
#define UDP_IN_MAXSIZE 1472
|
@ -1,18 +1,18 @@
|
|||||||
#ifndef WLED_NOTIFY_H
|
#ifndef WLED_NOTIFY_H
|
||||||
#define WLED_NOTIFY_H
|
#define WLED_NOTIFY_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "src/dependencies/e131/ESPAsyncE131.h"
|
#include "src/dependencies/e131/ESPAsyncE131.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
/*
|
/*
|
||||||
* UDP notifier
|
* UDP notifier
|
||||||
*/
|
*/
|
||||||
//union e131_packet_t; // Will this compile?
|
//union e131_packet_t; // Will this compile?
|
||||||
class IPAddress;
|
class IPAddress;
|
||||||
|
|
||||||
void notify(byte callMode, bool followUp=false);
|
void notify(byte callMode, bool followUp=false);
|
||||||
void arlsLock(uint32_t timeoutMs, byte md = REALTIME_MODE_GENERIC);
|
void arlsLock(uint32_t timeoutMs, byte md = REALTIME_MODE_GENERIC);
|
||||||
void handleE131Packet(e131_packet_t* p, IPAddress clientIP);
|
void handleE131Packet(e131_packet_t* p, IPAddress clientIP);
|
||||||
void handleNotifications();
|
void handleNotifications();
|
||||||
void setRealtimePixel(uint16_t i, byte r, byte g, byte b, byte w);
|
void setRealtimePixel(uint16_t i, byte r, byte g, byte b, byte w);
|
||||||
|
|
||||||
#endif // WLED_NOTIFY_H
|
#endif // WLED_NOTIFY_H
|
@ -1,6 +1,6 @@
|
|||||||
#include "wled_ntp.h"
|
#include "ntp.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
TimeChangeRule UTCr = {Last, Sun, Mar, 1, 0}; // UTC
|
TimeChangeRule UTCr = {Last, Sun, Mar, 1, 0}; // UTC
|
||||||
Timezone tzUTC(UTCr, UTCr);
|
Timezone tzUTC(UTCr, UTCr);
|
||||||
|
|
@ -1,19 +1,18 @@
|
|||||||
#ifndef WLED_NTP_H
|
#ifndef WLED_NTP_H
|
||||||
#define WLED_NTP_H
|
#define WLED_NTP_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "timezone/Timezone.h"
|
/*
|
||||||
/*
|
* Acquires time from NTP server
|
||||||
* Acquires time from NTP server
|
*/
|
||||||
*/
|
|
||||||
|
void handleNetworkTime();
|
||||||
void handleNetworkTime();
|
void sendNTPPacket();
|
||||||
void sendNTPPacket();
|
bool checkNTPResponse();
|
||||||
bool checkNTPResponse();
|
void updateLocalTime();
|
||||||
void updateLocalTime();
|
void getTimeString(char* out);
|
||||||
void getTimeString(char* out);
|
bool checkCountdown();
|
||||||
bool checkCountdown();
|
void setCountdown();
|
||||||
void setCountdown();
|
byte weekdayMondayFirst();
|
||||||
byte weekdayMondayFirst();
|
void checkTimers();
|
||||||
void checkTimers();
|
|
||||||
|
|
||||||
#endif // WLED_NTP_H
|
#endif // WLED_NTP_H
|
@ -1,7 +1,7 @@
|
|||||||
#include "wled_overlay.h"
|
#include "overlay.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_cronixie.h"
|
#include "cronixie.h"
|
||||||
#include "wled_ntp.h"
|
#include "ntp.h"
|
||||||
|
|
||||||
void initCronixie()
|
void initCronixie()
|
||||||
{
|
{
|
@ -1,14 +1,14 @@
|
|||||||
#ifndef WLED_OVERLAYS_H
|
#ifndef WLED_OVERLAYS_H
|
||||||
#define WLED_OVERLAYS_H
|
#define WLED_OVERLAYS_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Used to draw clock overlays over the strip
|
* Used to draw clock overlays over the strip
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void initCronixie();
|
void initCronixie();
|
||||||
void handleOverlays();
|
void handleOverlays();
|
||||||
void handleOverlayDraw();
|
void handleOverlayDraw();
|
||||||
void _overlayAnalogCountdown();
|
void _overlayAnalogCountdown();
|
||||||
void _overlayAnalogClock();
|
void _overlayAnalogClock();
|
||||||
|
|
||||||
#endif // WLED_OVERLAY_H
|
#endif // WLED_OVERLAY_H
|
@ -1,9 +1,9 @@
|
|||||||
#include "wled_server.h"
|
#include "server.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_file.h"
|
#include "file.h"
|
||||||
#include "wled_set.h"
|
#include "set.h"
|
||||||
#include "wled_json.h"
|
#include "json.h"
|
||||||
#include "wled_xml.h"
|
#include "xml.h"
|
||||||
|
|
||||||
|
|
||||||
//Is this an IP?
|
//Is this an IP?
|
@ -1,21 +1,21 @@
|
|||||||
#ifndef WLED_SERVER_H
|
#ifndef WLED_SERVER_H
|
||||||
#define WLED_SERVER_H
|
#define WLED_SERVER_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Server page declarations
|
* Server page declarations
|
||||||
*/
|
*/
|
||||||
class AsyncWebServerRequest;
|
class AsyncWebServerRequest;
|
||||||
|
|
||||||
|
|
||||||
bool isIp(String str);
|
bool isIp(String str);
|
||||||
bool captivePortal(AsyncWebServerRequest *request);
|
bool captivePortal(AsyncWebServerRequest *request);
|
||||||
void initServer();
|
void initServer();
|
||||||
void serveIndexOrWelcome(AsyncWebServerRequest *request);
|
void serveIndexOrWelcome(AsyncWebServerRequest *request);
|
||||||
void serveIndex(AsyncWebServerRequest* request);
|
void serveIndex(AsyncWebServerRequest* request);
|
||||||
String msgProcessor(const String& var);
|
String msgProcessor(const String& var);
|
||||||
void serveMessage(AsyncWebServerRequest* request, uint16_t code, String headl, String subl="", byte optionT=255);
|
void serveMessage(AsyncWebServerRequest* request, uint16_t code, String headl, String subl="", byte optionT=255);
|
||||||
String settingsProcessor(const String& var);
|
String settingsProcessor(const String& var);
|
||||||
String dmxProcessor(const String& var);
|
String dmxProcessor(const String& var);
|
||||||
void serveSettings(AsyncWebServerRequest* request);
|
void serveSettings(AsyncWebServerRequest* request);
|
||||||
|
|
||||||
#endif //WLED_SERVER_H
|
#endif //WLED_SERVER_H
|
@ -1,13 +1,13 @@
|
|||||||
#include "wled_set.h"
|
#include "set.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_colors.h"
|
#include "colors.h"
|
||||||
#include "wled_hue.h"
|
#include "hue.h"
|
||||||
#include "wled_led.h"
|
#include "led.h"
|
||||||
#include "wled_blynk.h"
|
#include "blynk.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_alexa.h"
|
#include "alexa.h"
|
||||||
#include "wled_cronixie.h"
|
#include "cronixie.h"
|
||||||
#include "wled_xml.h"
|
#include "xml.h"
|
||||||
|
|
||||||
void _setRandomColor(bool _sec,bool fromButton)
|
void _setRandomColor(bool _sec,bool fromButton)
|
||||||
{
|
{
|
@ -1,16 +1,16 @@
|
|||||||
#ifndef WLED_SET_H
|
#ifndef WLED_SET_H
|
||||||
#define WLED_SET_H
|
#define WLED_SET_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
/*
|
/*
|
||||||
* Receives client input
|
* Receives client input
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _setRandomColor(bool _sec,bool fromButton=false);
|
void _setRandomColor(bool _sec,bool fromButton=false);
|
||||||
bool isAsterisksOnly(const char* str, byte maxLen);
|
bool isAsterisksOnly(const char* str, byte maxLen);
|
||||||
void handleSettingsSet(AsyncWebServerRequest *request, byte subPage);
|
void handleSettingsSet(AsyncWebServerRequest *request, byte subPage);
|
||||||
bool handleSet(AsyncWebServerRequest *request, const String& req);
|
bool handleSet(AsyncWebServerRequest *request, const String& req);
|
||||||
int getNumVal(const String* req, uint16_t pos);
|
int getNumVal(const String* req, uint16_t pos);
|
||||||
bool updateVal(const String* req, const char* key, byte* val, byte minv=0, byte maxv=255);
|
bool updateVal(const String* req, const char* key, byte* val, byte minv=0, byte maxv=255);
|
||||||
|
|
||||||
#endif // WLED_SET_H
|
#endif // WLED_SET_H
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef WLED_USERMOD_H
|
#ifndef WLED_USERMOD_H
|
||||||
#define WLED_USERMOD_H
|
#define WLED_USERMOD_H
|
||||||
|
|
||||||
void userSetup();
|
void userSetup();
|
||||||
void userConnected();
|
void userConnected();
|
||||||
void userLoop();
|
void userLoop();
|
||||||
|
|
||||||
#endif // WLED_USERMOD_H
|
#endif // WLED_USERMOD_H
|
1763
wled00/wled.cpp
1763
wled00/wled.cpp
File diff suppressed because it is too large
Load Diff
1038
wled00/wled.h
1038
wled00/wled.h
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
#include "wled_xml.h"
|
#include "xml.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "wled_eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "wled_ntp.h"
|
#include "ntp.h"
|
||||||
|
|
||||||
|
|
||||||
//build XML response to HTTP /win API request
|
//build XML response to HTTP /win API request
|
@ -1,15 +1,15 @@
|
|||||||
#ifndef WLED_XML_H
|
#ifndef WLED_XML_H
|
||||||
#define WLED_XML_H
|
#define WLED_XML_H
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sending XML status files to client
|
* Sending XML status files to client
|
||||||
*/
|
*/
|
||||||
char* XML_response(AsyncWebServerRequest *request, char* dest = nullptr);
|
char* XML_response(AsyncWebServerRequest *request, char* dest = nullptr);
|
||||||
char* URL_response(AsyncWebServerRequest *request);
|
char* URL_response(AsyncWebServerRequest *request);
|
||||||
void sappend(char stype, const char* key, int val);
|
void sappend(char stype, const char* key, int val);
|
||||||
void sappends(char stype, const char* key, char* val);
|
void sappends(char stype, const char* key, char* val);
|
||||||
void getSettingsJS(byte subPage, char* dest);
|
void getSettingsJS(byte subPage, char* dest);
|
||||||
|
|
||||||
#endif // WLED_XML_H
|
#endif // WLED_XML_H
|
Loading…
Reference in New Issue
Block a user