Skip to content

Commit

Permalink
Merge pull request #3 from lulol/master
Browse files Browse the repository at this point in the history
Updated example
  • Loading branch information
NicoHood committed May 9, 2016
2 parents ca145bc + f9bb3dc commit 5e024d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/AdvancedSendDemo/AdvancedSendDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
*/

#include "RCLSwitch.h"

const uint8_t RCLpin = 7;
RCLSwitch myRCLSwitch(RCLpin);
CRCLSwitch<RCLpin> RCLSwitch;

// Channel: 00001 Button: 100000 Off: 01 On :10
uint16_t remoteUnit = 0B0000011000010;
Expand All @@ -18,7 +19,7 @@ void setup() {

void loop() {
// send input
myRCLSwitch.write(remoteUnit);
RCLSwitch.write(remoteUnit);

// switch the last 2 bits
remoteUnit ^= 0x03;
Expand Down

0 comments on commit 5e024d0

Please sign in to comment.