Skip to content

A fork version for Raspberry of RCSwitch with HomeEasy support

Notifications You must be signed in to change notification settings

duquesnay/HRCSwitch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HRCSwitch

  • HRCSwitch is a fork of RCSwitch libraries that also support HomeEasy Protocol

  • If you use send with 3 arguments the library will send a HE300 Protocol Code

  • If you use send with 2 arguments the library will send RCSwitch Protocol 1

  • mySwitch.send(Decimal Code,Length)

  • mySwitch.send(Remote/Device code,Button/Recipient code,on/off)

The librairies have a test code inside example (senddemo)

#include <HRCSwitch.h>
HRCSwitch mySwitch = HRCSwitch();

const int TXpin = 10;

void setup() {
  Serial.begin(9600);
  mySwitch.enableTransmit(TXpin);
  Serial.println("HRCSwitch ready");
}

void loop() {
  //Turn ON HE300 
  mySwitch.send(1234,0,true);
  delay(2000);
  //Turn ON RCSwitch
  mySwitch.send(1234,24);
  delay(2000);
  //Turn OFF HE300 
  mySwitch.send(1234,0,false);
  delay(2000);
  //Turn OFF RCSwitch
  mySwitch.send(1233,24);
  delay(2000);
}

````

About

A fork version for Raspberry of RCSwitch with HomeEasy support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.1%
  • Other 2.5%
  • Processing 2.4%