Browse Source

Added ESPLive board

fastled
Mitchell A. Cox 7 years ago
parent
commit
cdc98e1cb5
2 changed files with 40 additions and 0 deletions
  1. +28
    -0
      code/espurna/config/hardware.h
  2. +12
    -0
      code/espurna/hardware.ino

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

@ -876,6 +876,34 @@
#define ECH1560_MISO_PIN 5 #define ECH1560_MISO_PIN 5
#define ECH1560_INVERTED 0 #define ECH1560_INVERTED 0
// -----------------------------------------------------------------------------
// ESPLive
// https://github.com/ManCaveMade/ESP-Live
// -----------------------------------------------------------------------------
#elif defined(ESPLIVE)
// Info
#define MANUFACTURER "ManCave Made"
#define DEVICE "ESPLIVE"
// Buttons
#define BUTTON1_PIN 4
#define BUTTON2_PIN 5
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
#define BUTTON2_RELAY 2
// Relays
#define RELAY1_PIN 12
#define RELAY2_PIN 13
#define RELAY1_TYPE RELAY_TYPE_NORMAL
#define RELAY2_TYPE RELAY_TYPE_NORMAL
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Unknown hardware // Unknown hardware
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------


+ 12
- 0
code/espurna/hardware.ino View File

@ -442,6 +442,18 @@ void hwUpwardsCompatibility() {
setSetting("board", 38); setSetting("board", 38);
#elif defined(ESPLIVE)
setSetting("board", 39);
setSetting("btnGPIO", 1, 4);
setSetting("btnGPIO", 2, 5);
setSetting("btnRelay", 1, 1);
setSetting("btnRelay", 2, 2);
setSetting("relayGPIO", 1, 12);
setSetting("relayGPIO", 2, 13);
setSetting("relayType", 1, RELAY_TYPE_NORMAL);
setSetting("relayType", 2, RELAY_TYPE_NORMAL);
#else #else
#error "UNSUPPORTED HARDWARE!" #error "UNSUPPORTED HARDWARE!"


Loading…
Cancel
Save