Smart Home Automation Forum
[arduino source code for KC868-Uair-7] send IR code signal - 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-Uair (https://www.kincony.com/forum/forumdisplay.php?fid=31)
+--- Thread: [arduino source code for KC868-Uair-7] send IR code signal (/showthread.php?tid=1576)



[arduino source code for KC868-Uair-7] send IR code signal - admin - 01-03-2022

#include "PinDefinitionsAndMore.h"
#include <IRremote.h>

void setup() {

  Serial.begin(9600);
  IrSender.begin(IR_SEND_PIN, ENABLE_LED_FEEDBACK);

}

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

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


download arduino IDE source code file: 

.zip   Uair_IR_send.zip (Size: 388 bytes / Downloads: 292)

Note: install "IRremote" library online firstly.

[Image: attachment.php?aid=456]

set IR sender and receiver GPIO pins define as below image:
[Image: attachment.php?aid=459]