set number of repeats for 433 mhz RCSwitch
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 20 Jul 2015 16:24:49 +0000 (18:24 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 20 Jul 2015 16:24:49 +0000 (18:24 +0200)
rpi_promini/rpi_promini.ino

index d1395e4..73d3092 100644 (file)
@@ -86,6 +86,7 @@ void setup() {
   Serial.begin(9600);
   mySwitch.enableReceive(0);  // Receiver on inerrupt 0 => that is pin #2  
   mySwitch.enableTransmit(10); // with sender wired in receiving doesn't work, pin #10
+  mySwitch.setRepeatTransmit(repeat); // or change to be different for 433 and 315 MHz
 
   // DS18B20
   sensors.begin();