Smart Home Automation Forum
[Arduino IDE demo source code for KC868-AG]--#03--IR send code - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-AG / AG Pro / AG8 (https://www.kincony.com/forum/forumdisplay.php?fid=30)
+--- Thread: [Arduino IDE demo source code for KC868-AG]--#03--IR send code (/showthread.php?tid=1675)



[Arduino IDE demo source code for KC868-AG]--#03--IR send code - KinCony Support - 01-27-2022

Code 3: //The demo code is IR SEND code   You can copy the code to your Arduino IDE
Code:
#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {

  Serial.begin(9600);
  IrSender.begin(IR_SEND_PIN, ENABLE_LED_FEEDBACK);// IR_SEND_PIN is defined in PinDefinitionsAndMore.h file

}

  uint16_t sAddress = 0x78;
  uint8_t sCommand = 0xCD;
  uint8_t sRepeats = 0;

void loop() {
  IrSender.sendNEC(sAddress, sCommand, sRepeats);
  delay(1000);
}

   
you can download the zip file.


.zip   KC868-AG_IR_send.zip (Size: 3.14 KB / Downloads: 293)