Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-AG]--#03--IR send code
#1
Lightbulb 
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)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)