// ----------------------------------------------------------------------------- // NODEMCUv2 development board // ----------------------------------------------------------------------------- #if defined(NODEMCUV2) #define MANUFACTURER "NODEMCU" #define DEVICE "LOLIN" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 2 #define LED_PIN_INVERSE 0 // ----------------------------------------------------------------------------- // Itead Studio boards // ----------------------------------------------------------------------------- #elif defined(SONOFF) #define MANUFACTURER "ITEAD" #define DEVICE "SONOFF" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 13 #define LED_PIN_INVERSE 0 #elif defined(SONOFF_TH) #define MANUFACTURER "ITEAD" #define DEVICE "SONOFF_TH" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 13 #define LED_PIN_INVERSE 0 #elif defined(SONOFF_POW) #define MANUFACTURER "ITEAD" #define DEVICE "SONOFF_POW" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 15 #define LED_PIN_INVERSE 1 #define ENABLE_POW 1 #elif defined(SONOFF_DUAL) #define MANUFACTURER "ITEAD" #define DEVICE "SONOFF_DUAL" #define BUTTON_PIN 0 #define LED_PIN 13 #define LED_PIN_INVERSE 0 #undef SERIAL_BAUDRATE #define SERIAL_BAUDRATE 19230 #elif defined(SLAMPHER) #define MANUFACTURER "ITEAD" #define DEVICE "SLAMPHER" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 13 #define LED_PIN_INVERSE 0 #elif defined(S20) #define MANUFACTURER "ITEAD" #define DEVICE "S20" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 13 #define LED_PIN_INVERSE 0 // ----------------------------------------------------------------------------- // Electrodragon boards // ----------------------------------------------------------------------------- #elif defined(ESP_RELAY_BOARD) #define MANUFACTURER "ELECTRODRAGON" #define DEVICE "ESP_RELAY_BOARD" #define BUTTON_PIN 2 #define RELAY1_PIN 12 #define RELAY2_PIN 13 #define LED_PIN 16 #define LED_PIN_INVERSE 1 // ----------------------------------------------------------------------------- // WorkChoice ecoPlug // ----------------------------------------------------------------------------- #elif defined(ECOPLUG) #define MANUFACTURER "WORKCHOICE" #define DEVICE "ECOPLUG" #define BUTTON_PIN 13 #define RELAY_PIN 15 #define LED_PIN 2 #define LED_PIN_INVERSE 1 // ----------------------------------------------------------------------------- // ESPurna board (still beta) // ----------------------------------------------------------------------------- #elif defined(ESPURNA) #define MANUFACTURER "TINKERMAN" #define DEVICE "ESPURNA" #define BUTTON_PIN 0 #define RELAY1_PIN 12 #define LED_PIN 13 #define LED_PIN_INVERSE 0 // ----------------------------------------------------------------------------- // Unknown hardware // ----------------------------------------------------------------------------- #else #error "UNSUPPORTED HARDWARE!" #endif