MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / sendTriState

Method sendTriState

Arduino/libraries/RCSwitch/RCSwitch.cpp:430–449  ·  view source on GitHub ↗

* @param sCodeWord /^[10FS]*$/ -> see getCodeWord */

Source from the content-addressed store, hash-verified

428 * @param sCodeWord /^[10FS]*$/ -> see getCodeWord
429 */
430void RCSwitch::sendTriState(char* sCodeWord) {
431 for (int nRepeat=0; nRepeat<nRepeatTransmit; nRepeat++) {
432 int i = 0;
433 while (sCodeWord[i] != '\0') {
434 switch(sCodeWord[i]) {
435 case '0':
436 this->sendT0();
437 break;
438 case 'F':
439 this->sendTF();
440 break;
441 case '1':
442 this->sendT1();
443 break;
444 }
445 i++;
446 }
447 this->sendSync();
448 }
449}
450
451void RCSwitch::send(unsigned long Code, unsigned int length) {
452 this->send( this->dec2binWzerofill(Code, length) );

Callers 2

switchOnMethod · 0.95
switchOffMethod · 0.95

Calls 4

sendT0Method · 0.95
sendTFMethod · 0.95
sendT1Method · 0.95
sendSyncMethod · 0.95

Tested by

no test coverage detected