예제 #1
0
void PDCreceive::checkIR(IRrecv irrecv, decode_results results) {
    if (irrecv.decode(&results)) {
//        Serial.println("got something");
        IR_busy = true;
        irrecv.resume();
        storeData(results.value);
    }
}
예제 #2
0
파일: IRtest.cpp 프로젝트: DarkFox/Arduino
void verify(unsigned long val, int bits, int type) {
  irsenddummy.useDummyBuf();
  irrecv.decode(&results);
  Serial.print("Testing ");
  Serial.print(val, HEX);
  if (results.value == val && results.bits == bits && results.decode_type == type) {
    Serial.println(": OK");
  } 
  else {
    Serial.println(": Error");
    dump(&results);
  }
}