Ir esp8266 lib update and code impacts (#235)
* integrate new IRremoteESP8266 lib 2.4.2 and add new protocols IR_RC6 IR_MITSUBISHI IR_GICABLE IR_MITSUBISHI2 IR_LASERTAG IR_CARRIER_AC IR_MIDEA IR_NIKAI IR_SHERWOOD IR_DENON IR_AIWA_RC_T501 IR_JVC
This commit is contained in:
1 parent
9b258723a8
commit
b12ee19979
130 files changed
+16548
-1693
No files matched your search
@@ -1,9 +1,22 @@
|
||||
/*
|
||||
* IRremoteESP8266: IRrecvDump - dump details of IR codes with IRrecv
|
||||
* An IR detector/demodulator must be connected to the input RECV_PIN.
|
||||
* Version 0.1 Sept, 2015
|
||||
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009,
|
||||
* Copyright 2009 Ken Shirriff, http://arcfn.com
|
||||
*
|
||||
***** DEPRECATED - DO NOT USE *****
|
||||
* Unless you know what you are doing, you should be using the
|
||||
* IRrecvDumpV2.ino sketch/example instead for capturing & decoding IR messages.
|
||||
* In almost ALL ways it is BETTER, FASTER, and MORE DETAILED.
|
||||
*
|
||||
* This code is left only for legacy reasons, and as another simple example of
|
||||
* how to use the IRremoteESP8266 library.
|
||||
*
|
||||
* As of November 2017 it will no longer be updated or supported.
|
||||
* You have been warned.
|
||||
***** DEPRECATED - DO NOT USE *****
|
||||
*
|
||||
* An IR detector/demodulator must be connected to the input RECV_PIN.
|
||||
* Version 0.2 Oct 2017
|
||||
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009,
|
||||
* JVC and Panasonic protocol added by Kristian Lauszus
|
||||
* (Thanks to zenwheel and other people at the original blog post)
|
||||
* LG added by Darryl Smith (based on the JVC protocol)
|
||||
@@ -58,6 +71,8 @@ void dump(decode_results *results) {
|
||||
Serial.print("Decoded AIWA RC T501: ");
|
||||
} else if (results->decode_type == WHYNTER) {
|
||||
Serial.print("Decoded Whynter: ");
|
||||
} else if (results->decode_type == NIKAI) {
|
||||
Serial.print("Decoded Nikai: ");
|
||||
}
|
||||
serialPrintUint64(results->value, 16);
|
||||
Serial.print(" (");
|
||||
@@ -65,7 +80,7 @@ void dump(decode_results *results) {
|
||||
Serial.println(" bits)");
|
||||
Serial.print("Raw (");
|
||||
Serial.print(count, DEC);
|
||||
Serial.print("): ");
|
||||
Serial.print("): {");
|
||||
|
||||
for (uint16_t i = 1; i < count; i++) {
|
||||
if (i % 100 == 0)
|
||||
@@ -73,18 +88,17 @@ void dump(decode_results *results) {
|
||||
if (i & 1) {
|
||||
Serial.print(results->rawbuf[i] * RAWTICK, DEC);
|
||||
} else {
|
||||
Serial.write('-');
|
||||
Serial.print(", ");
|
||||
Serial.print((uint32_t) results->rawbuf[i] * RAWTICK, DEC);
|
||||
}
|
||||
Serial.print(" ");
|
||||
}
|
||||
Serial.println();
|
||||
Serial.println("};");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if (irrecv.decode(&results)) {
|
||||
serialPrintUint64(results.value, 16);
|
||||
dump(&results);
|
||||
Serial.println("DEPRECATED: Please use IRrecvDumpV2.ino instead!");
|
||||
irrecv.resume(); // Receive the next value
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user