Skip to content
Snippets Groups Projects
Commit 94d25fce authored by sui77's avatar sui77
Browse files

Merge pull request #11 from renekliment/lidl-sockets-basic

Lidl sockets basic
parents 286b9c4c b88a406b
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment