Smart Home Automation Forum

Full Version: [Arduino IDE demo source code for KC868-AG]--#03--IR send code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}

[attachment=582]
you can download the zip file.

[attachment=581]