From 4b3266d8334780de32b690647b6aaad2d2a57dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 24 Apr 2017 10:48:52 +0200 Subject: [PATCH] Initial support for the HUACANXING H801. Untested --- code/espurna/config/hardware.h | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 12d3980e..13c051a3 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -283,6 +283,46 @@ #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT #define LIGHT_PROVIDER LIGHT_PROVIDER_RGB + #undef RGBW_INVERSE_LOGIC + #undef RGBW_RED_PIN + #undef RGBW_GREEN_PIN + #undef RGBW_BLUE_PIN + #undef RGBW_WHITE_PIN + + #define RGBW_INVERSE_LOGIC 1 + #define RGBW_RED_PIN 14 + #define RGBW_GREEN_PIN 5 + #define RGBW_BLUE_PIN 12 + #define RGBW_WHITE_PIN 13 + +// ----------------------------------------------------------------------------- +// HUACANXING H801 +// ----------------------------------------------------------------------------- + +#elif defined(H801) + + #define MANUFACTURER "HUACANXING" + #define DEVICE "H801" + #define LED1_PIN 5 + #define LED1_PIN_INVERSE 1 + #define LED2_PIN 2 + #define LED2_PIN_INVERSE 1 + #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT + #define LIGHT_PROVIDER LIGHT_PROVIDER_RGBW + + #undef RGBW_INVERSE_LOGIC + #undef RGBW_RED_PIN + #undef RGBW_GREEN_PIN + #undef RGBW_BLUE_PIN + #undef RGBW_WHITE_PIN + + #define RGBW_INVERSE_LOGIC 0 + #define RGBW_RED_PIN 15 + #define RGBW_GREEN_PIN 13 + #define RGBW_BLUE_PIN 12 + #define RGBW_WHITE_PIN 14 + //#define RGBW_WHITE_PIN 4 <= warm white + // ----------------------------------------------------------------------------- // Jan Goedeke Wifi Relay // https://github.com/JanGoe/esp8266-wifi-relay