From f9bb3dcdb38b9fad8b5183cc9ec10e685a2244e5 Mon Sep 17 00:00:00 2001 From: lulol Date: Mon, 9 May 2016 16:50:27 +0200 Subject: [PATCH] Updated example --- examples/AdvancedSendDemo/AdvancedSendDemo.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/AdvancedSendDemo/AdvancedSendDemo.ino b/examples/AdvancedSendDemo/AdvancedSendDemo.ino index 01899fc..0581339 100644 --- a/examples/AdvancedSendDemo/AdvancedSendDemo.ino +++ b/examples/AdvancedSendDemo/AdvancedSendDemo.ino @@ -7,8 +7,9 @@ */ #include "RCLSwitch.h" + const uint8_t RCLpin = 7; -RCLSwitch myRCLSwitch(RCLpin); +CRCLSwitch RCLSwitch; // Channel: 00001 Button: 100000 Off: 01 On :10 uint16_t remoteUnit = 0B0000011000010; @@ -18,7 +19,7 @@ void setup() { void loop() { // send input - myRCLSwitch.write(remoteUnit); + RCLSwitch.write(remoteUnit); // switch the last 2 bits remoteUnit ^= 0x03;