2 Example for different sending methods
4 https://github.com/sui77/rc-switch/
10 RCSwitch mySwitch = RCSwitch();
16 // Transmitter is connected to Arduino Pin #10
17 mySwitch.enableTransmit(10);
19 // Optional set pulse length.
20 // mySwitch.setPulseLength(320);
22 // Optional set protocol (default is 1, will work for most outlets)
23 // mySwitch.setProtocol(2);
25 // Optional set number of transmission repetitions.
26 // mySwitch.setRepeatTransmit(15);
32 /* See Example: TypeA_WithDIPSwitches */
33 mySwitch.switchOn("11111", "00010");
35 mySwitch.switchOn("11111", "00010");
38 /* Same switch as above, but using decimal code */
39 mySwitch.send(5393, 24);
41 mySwitch.send(5396, 24);
44 /* Same switch as above, but using binary code */
45 mySwitch.send("000000000001010100010001");
47 mySwitch.send("000000000001010100010100");
50 /* Same switch as above, but tri-state code */
51 mySwitch.sendTriState("00000FFF0F0F");
53 mySwitch.sendTriState("00000FFF0FF0");