및
[아두이노] IR Receiver 소스 및 결과 화면
1. 소스 #include const unsigned int IR_RECEIVER_PIN = 11;const unsigned int BAUD_RATE = 9600; IRrecv ir_rev(IR_RECEIVER_PIN);decode_results results; void setup() { // put your setup code here, to run once: Serial.begin(BAUD_RATE); ir_rev.enableIRIn();} void printStatus(const decode_results* results) { const int protocol = results->decode_type; if (protocol == UNKNOWN) { Serial.println("not recogni..