From d30cd2b072a23acb8cda4be20da042c98f03e80e Mon Sep 17 00:00:00 2001 From: David Myers Date: Thu, 15 Dec 2016 10:10:16 -0500 Subject: [PATCH] Adding hardware definition for esp8266 device available in USA ( https://www.walmart.com/ip/Generic-CT-065W-WorkChoice-1-Ol-Wi-Fi-Indoor-Switch-White/46721978 ). --- code/src/config/hardware.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/src/config/hardware.h b/code/src/config/hardware.h index 0d06161b..2fa8d1cc 100644 --- a/code/src/config/hardware.h +++ b/code/src/config/hardware.h @@ -85,6 +85,19 @@ #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) // -----------------------------------------------------------------------------