01-03-2022, 05:41 AM
#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:
Uair_IR_send.zip (Size: 388 bytes / Downloads: 296)
Note: install "IRremote" library online firstly.
set IR sender and receiver GPIO pins define as below image:
#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:
Uair_IR_send.zip (Size: 388 bytes / Downloads: 296)
Note: install "IRremote" library online firstly.
set IR sender and receiver GPIO pins define as below image: