Browse Source

hw: add support for the Zhilde ZLD-64EU-W (#2342)

* Add support for the Zhilde ZLD-64EU-W

This is a power outlet with 6 power sockets and 4 USB ports.

* fixup based on the zld-44eu hw and tasmota template info

Co-authored-by: Maxim Prokhorov <prokhorov.max@outlook.com>
mcspr-patch-1
Bert Vermeulen 4 years ago
committed by GitHub
parent
commit
f6ec2422a4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 2 deletions
  1. +1
    -0
      code/espurna/config/arduino.h
  2. +26
    -2
      code/espurna/config/hardware.h
  3. +4
    -0
      code/platformio.ini
  4. +3
    -0
      code/platformio_ota.ini

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

@ -178,6 +178,7 @@
//#define YJZK_SWITCH_2CH //#define YJZK_SWITCH_2CH
//#define YJZK_SWITCH_3CH //#define YJZK_SWITCH_3CH
//#define ZHILDE_EU44_W //#define ZHILDE_EU44_W
//#define ZHILDE_EU64_W
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// Features (values below are non-default values) // Features (values below are non-default values)


+ 26
- 2
code/espurna/config/hardware.h View File

@ -2757,6 +2757,32 @@
#define LED1_PIN 1 #define LED1_PIN 1
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// -----------------------------------------------------------------------------
// Zhilde ZLD-64EU-W
// -----------------------------------------------------------------------------
#elif defined(ZHILDE_64EU_W)
// Info
#define MANUFACTURER "ZHILDE"
#define DEVICE "64EU_W"
// Based on https://templates.blakadder.com/ZLD64-EU-W.html ,
// This product uses GPIO1 for LED and 3 for the button, so hardware serial should be disabled...
#define DEBUG_SERIAL_SUPPORT 0
#define BUTTON1_PIN 3
#define BUTTON1_CONFIG BUTTON_PUSHBUTTON | BUTTON_SET_PULLUP | BUTTON_DEFAULT_HIGH
#define BUTTON1_PRESS BUTTON_ACTION_NONE
#define BUTTON1_RELAY 3
#define RELAY1_PIN 5
#define RELAY2_PIN 4
#define RELAY3_PIN 14
#define LED1_PIN 1
#define LED1_PIN_INVERSE 1
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Allnet 4duino ESP8266-UP-Relais // Allnet 4duino ESP8266-UP-Relais
// http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/ // http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/
@ -4866,8 +4892,6 @@
#define LED1_PIN 2 #define LED1_PIN 2
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// -----------------------------------------------------------------------------
#else #else
#error "UNSUPPORTED HARDWARE!!" #error "UNSUPPORTED HARDWARE!!"


+ 4
- 0
code/platformio.ini View File

@ -769,6 +769,10 @@ src_build_flags = -DARNIEX_SWIFITCH
extends = env:esp8266-1m-base extends = env:esp8266-1m-base
src_build_flags = -DZHILDE_EU44_W src_build_flags = -DZHILDE_EU44_W
[env:zhilde-64eu-w]
extends = env:esp8266-1m-base
src_build_flags = -DZHILDE_64EU_W
[env:luani-hvio] [env:luani-hvio]
extends = env:esp8266-1m-base extends = env:esp8266-1m-base
src_build_flags = -DLUANI_HVIO src_build_flags = -DLUANI_HVIO


+ 3
- 0
code/platformio_ota.ini View File

@ -273,6 +273,9 @@ extends = env:arniex-swifitch
[env:zhilde-eu44-w-ota] [env:zhilde-eu44-w-ota]
extends = env:zhilde-eu44-w extends = env:zhilde-eu44-w
[env:zhilde-64eu-w-ota]
extends = env:zhilde-64eu-w
[env:luani-hvio-ota] [env:luani-hvio-ota]
extends = env:luani-hvio extends = env:luani-hvio


Loading…
Cancel
Save