From b88a406b3a2841185a3e627a2b17088f2612965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kliment?= <rene@renekliment.cz> Date: Mon, 23 Nov 2015 18:08:16 +0100 Subject: [PATCH] added basic support for SilverCrest sockets from Lidl --- RCSwitch.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/RCSwitch.cpp b/RCSwitch.cpp index fc7c7a3..34fa7ba 100644 --- a/RCSwitch.cpp +++ b/RCSwitch.cpp @@ -64,6 +64,12 @@ void RCSwitch::setProtocol(int nProtocol) { else if (nProtocol == 3) { this->setPulseLength(100); } + else if (nProtocol == 4) { + this->setPulseLength(380); + } + else if (nProtocol == 5) { + this->setPulseLength(500); + } } /** @@ -511,6 +517,12 @@ void RCSwitch::send0() { else if (this->nProtocol == 3) { this->transmit(4,11); } + else if (this->nProtocol == 4) { + this->transmit(1,3); + } + else if (this->nProtocol == 5) { + this->transmit(1,2); + } } /** @@ -530,6 +542,12 @@ void RCSwitch::send1() { else if (this->nProtocol == 3) { this->transmit(9,6); } + else if (this->nProtocol == 4) { + this->transmit(3,1); + } + else if (this->nProtocol == 5) { + this->transmit(2,1); + } } @@ -581,6 +599,12 @@ void RCSwitch::sendSync() { else if (this->nProtocol == 3) { this->transmit(1,71); } + else if (this->nProtocol == 4) { + this->transmit(1,6); + } + else if (this->nProtocol == 5) { + this->transmit(6,14); + } } #if not defined( RCSwitchDisableReceiving ) -- GitLab