Skip to content

Commit

Permalink
Avoid name collision. Fix wled instance access in ino.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisDean committed Mar 28, 2020
1 parent f35ab12 commit f99f13a
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion usermods/blynk_relay_control/wled06_usermod.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file allows you to add own functionality to WLED more easily
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled01_eeprom.h)
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled_eeprom.h)
* bytes 2400+ are currently ununsed, but might be used for future wled features
*/

Expand Down
2 changes: 1 addition & 1 deletion usermods/stairway_wipe_basic/wled06_usermod.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file allows you to add own functionality to WLED more easily
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled01_eeprom.h)
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled_eeprom.h)
* bytes 2400+ are currently ununsed, but might be used for future wled features
*/

Expand Down
2 changes: 1 addition & 1 deletion wled00/alexa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "wled.h"
#include "const.h"
#include "led.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "colors.h"

#ifndef WLED_DISABLE_ALEXA
Expand Down
2 changes: 1 addition & 1 deletion wled00/button.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "button.h"
#include "wled.h"
#include "led.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "set.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion wled00/hue.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "hue.h"
#include "wled.h"
#include "colors.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "notify.h"
#include "led.h"

Expand Down
2 changes: 1 addition & 1 deletion wled00/ir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "wled.h"
#include "led.h"
#include "colors.h"
#include "eeprom.h"
#include "wled_eeprom.h"

#if defined(WLED_DISABLE_INFRARED)
void handleIR(){}
Expand Down
2 changes: 1 addition & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "json.h"
#include "wled.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "led.h"

void deserializeSegment(JsonObject elem, byte it)
Expand Down
2 changes: 1 addition & 1 deletion wled00/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "wled.h"
#include "notify.h"
#include "blynk.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "mqtt.h"
#include "colors.h"

Expand Down
4 changes: 3 additions & 1 deletion wled00/ntp.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "ntp.h"
#include "src/dependencies/timezone/Timezone.h"
#include "wled.h"
#include "eeprom.h"
#include "wled_eeprom.h"

TimeChangeRule UTCr = {Last, Sun, Mar, 1, 0}; // UTC
Timezone tzUTC(UTCr, UTCr);

Expand Down
2 changes: 1 addition & 1 deletion wled00/set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "hue.h"
#include "led.h"
#include "blynk.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "alexa.h"
#include "cronixie.h"
#include "xml.h"
Expand Down
2 changes: 1 addition & 1 deletion wled00/usermod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file allows you to add own functionality to WLED more easily
* See: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled01_eeprom.h)
* EEPROM bytes 2750+ are reserved for your custom use case. (if you extend #define EEPSIZE in wled01_wled_eeprom.h)
* bytes 2400+ are currently ununsed, but might be used for future wled features
*/

Expand Down
3 changes: 1 addition & 2 deletions wled00/wled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
#include "blynk.h"
#include "hue.h"
#include "mqtt.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "server.h"
// replaced
// Global Variable definitions
char versionString[] = "0.9.1";

Expand Down
6 changes: 2 additions & 4 deletions wled00/wled00.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
*/
#include "wled.h"

WLED& wled;
void setup() {
wled = WLED::instance();
wled.setup();
WLED::instance().setup();
}

void loop() {
wled.loop();
WLED::instance().loop();
}
3 changes: 2 additions & 1 deletion wled00/eeprom.cpp → wled00/wled_eeprom.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "eeprom.h"
#include "wled_eeprom.h"
#include <EEPROM.h>
#include "wled.h"
#include "cronixie.h"
#include "ntp.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wled00/xml.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "xml.h"
#include "wled.h"
#include "eeprom.h"
#include "wled_eeprom.h"
#include "ntp.h"


Expand Down

0 comments on commit f99f13a

Please sign in to comment.