From 1f8665496c51f76300980162c0554fe5d3153eb8 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Sun, 13 Jan 2019 15:33:27 -0300 Subject: [PATCH 1/2] Add template for Luminea ZX2820 https://github.com/arendst/Sonoff-Tasmota/issues/4904 --- sonoff/sonoff_template.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index e15fb9a99..c1f1c3545 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -277,6 +277,7 @@ enum SupportedModules { YTF_IR_BRIDGE, DIGOO, KA10, + ZX2820, MAXMODULE }; /********************************************************************************************/ @@ -568,6 +569,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = { PHILIPS, YTF_IR_BRIDGE, WITTY, // Development Devices + ZX2820, WEMOS }; @@ -1737,6 +1739,22 @@ const mytmplt kModules[MAXMODULE] PROGMEM = { GPIO_REL1, // GPIO14 Relay 1 0, 0, 0 } + { "Luminea ZX2820", + GPIO_KEY1, // GPIO00 Button + 0, 0, 0, + GPIO_HLW_CF, // GPIO04 HLW8012 CF power + GPIO_NRG_CF1, // GPIO05 HLW8012 CF1 voltage / current + // GPIO06 (SD_CLK Flash) + // GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT) + // GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT) + 0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285) + 0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285) + // GPIO11 (SD_CMD Flash) + GPIO_NRG_SEL_INV, // GPIO12 HLW8012 SEL (0 = Voltage) + GPIO_LED1_INV, // GPIO13 Green Led - Link and Power status + GPIO_REL1, // GPIO14 Relay + 0, 0, 0 + } }; /* From 2e38c5ba0711775db500a2a203f02818ccf1ab23 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Sun, 13 Jan 2019 23:35:33 -0300 Subject: [PATCH 2/2] Fix missing , --- sonoff/sonoff_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/sonoff_template.h b/sonoff/sonoff_template.h index c1f1c3545..5db27e817 100644 --- a/sonoff/sonoff_template.h +++ b/sonoff/sonoff_template.h @@ -1738,7 +1738,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = { GPIO_LED2, // GPIO13 Red LED - Power status GPIO_REL1, // GPIO14 Relay 1 0, 0, 0 - } + }, { "Luminea ZX2820", GPIO_KEY1, // GPIO00 Button 0, 0, 0,