diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 0279717b..150dae78 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -19,6 +19,7 @@ //#define SONOFF_TH //#define SLAMPHER //#define S20 +//#define SONOFF_TOUCH //#define SONOFF_SV //#define SONOFF_POW //#define SONOFF_DUAL diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index bb4bf810..23ee48d2 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -398,3 +398,11 @@ #ifndef WIFI_LED #define WIFI_LED 1 #endif + +// Needed for ESP8285 boards under Windows using PlatformIO (?) +#ifndef BUTTON_PUSHBUTTON +#define BUTTON_PUSHBUTTON 0 +#define BUTTON_SWITCH 1 +#define BUTTON_DEFAULT_HIGH 2 +#define BUTTON_SET_PULLUP 4 +#endif diff --git a/code/espurna/config/prototypes.h b/code/espurna/config/prototypes.h index c9373597..4d3c43fe 100644 --- a/code/espurna/config/prototypes.h +++ b/code/espurna/config/prototypes.h @@ -14,3 +14,4 @@ template bool setSetting(const String& key, T value); template String getSetting(const String& key, T defaultValue); template void domoticzSend(const char * key, T value); template void domoticzSend(const char * key, T nvalue, const char * svalue); +void relayDomoticzSend(unsigned int relayID); diff --git a/code/espurna/led.ino b/code/espurna/led.ino index d251c243..b8d6d854 100644 --- a/code/espurna/led.ino +++ b/code/espurna/led.ino @@ -10,8 +10,6 @@ Copyright (C) 2016-2017 by Xose PĂ©rez // LED // ----------------------------------------------------------------------------- -#ifdef LED1_PIN - typedef struct { unsigned char pin; bool reverse; @@ -148,10 +146,3 @@ void ledLoop() { if (ledAuto) showStatus(); #endif } - -#else - -void ledSetup() {}; -void ledLoop() {}; - -#endif