Uploaded from my local repository
[433Utils_NP] / rc-switch / examples / TypeC_Intertechno / TypeC_Intertechno.pde
1 /*
2   Example for Intertechno outlets
3   
4   https://github.com/sui77/rc-switch/
5 */
6
7 #include <RCSwitch.h>
8
9 RCSwitch mySwitch = RCSwitch();
10
11 void setup() {
12
13   // Transmitter is connected to Arduino Pin #10  
14   mySwitch.enableTransmit(10);
15   
16   // Optional set pulse length.
17   // mySwitch.setPulseLength(320);
18   
19 }
20
21 void loop() {
22
23   // Switch on:
24   // The first parameter represents the familycode (a, b, c, ... f)
25   // The second parameter represents the group number
26   // The third parameter represents the device number
27   // 
28   // In this example it's family 'b', group #3, device #2 
29   mySwitch.switchOn('b', 3, 2);
30
31   // Wait a second
32   delay(1000);
33   
34   // Switch off
35   mySwitch.switchOff('b', 3, 2);
36   
37   // Wait another second
38   delay(1000);
39   
40 }
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717