Browse Source

Small fixes for windows machines

fastled
Xose Pérez 7 years ago
parent
commit
57a25a9f49
4 changed files with 10 additions and 9 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +8
    -0
      code/espurna/config/hardware.h
  3. +1
    -0
      code/espurna/config/prototypes.h
  4. +0
    -9
      code/espurna/led.ino

+ 1
- 0
code/espurna/config/arduino.h View File

@ -19,6 +19,7 @@
//#define SONOFF_TH
//#define SLAMPHER
//#define S20
//#define SONOFF_TOUCH
//#define SONOFF_SV
//#define SONOFF_POW
//#define SONOFF_DUAL


+ 8
- 0
code/espurna/config/hardware.h View File

@ -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

+ 1
- 0
code/espurna/config/prototypes.h View File

@ -14,3 +14,4 @@ template<typename T> bool setSetting(const String& key, T value);
template<typename T> String getSetting(const String& key, T defaultValue);
template<typename T> void domoticzSend(const char * key, T value);
template<typename T> void domoticzSend(const char * key, T nvalue, const char * svalue);
void relayDomoticzSend(unsigned int relayID);

+ 0
- 9
code/espurna/led.ino View File

@ -10,8 +10,6 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com>
// 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

Loading…
Cancel
Save