File tree Expand file tree Collapse file tree 10 files changed +12
-9
lines changed
ReceiveAndSendDistanceWidth Expand file tree Collapse file tree 10 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Available as [Arduino library "IRremote"](https://www.arduinolibraries.info/libr
4141 * [ Staying on 2.x] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#staying-on-2x )
4242- [ Why * .hpp instead of * .cpp] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#why-hpp-instead-of-cpp )
4343- [ Using the new * .hpp files] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#using-the-new-hpp-files )
44+ - [ IRReceiver pinouts] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#irreceiver-pinouts )
4445- [ Receiving IR codes] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#receiving-ir-codes )
4546 * [ decodedIRData structure] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#decodedirdata-structure )
4647 * [ Ambiguous protocols] ( https://github.com/Arduino-IRremote/Arduino-IRremote?tab=readme-ov-file#ambiguous-protocols )
@@ -292,9 +293,10 @@ The following macros will definitely be overridden with default values otherwise
292293
293294<br />
294295
295- # Receiving IR codes
296+ # IRReceiver pinouts
296297![ IRReceiver Pinout] ( https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/pictures/IRReceiverPinout.jpg )
297298
299+ # Receiving IR codes
298300Check for a ** completly received IR frame** with:<br />
299301` if (IrReceiver.decode()) {} ` <br />
300302This also decodes the received data.<br />
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ See also the commit log at github: https://github.com/Arduino-IRremote/Arduino-I
1111- Added functions stopTimer(), restartTimer() and restartTimerWithTicksToAdd().
1212- Added rawlen and initialGap to IRData.
1313- Added ReceiveAndSendHobToHood example.
14+ - Changed RECORD_GAP_MICROS default value from 5000 to 8000.
1415
1516# 4.2.1
1617- Fix wrong type of tEnableLEDFeedback in IRSend.hpp and IRReceive.hpp.
Original file line number Diff line number Diff line change 5959// to compensate for the signal forming of different IR receiver modules. See also IRremote.hpp line 142.
6060#define MARK_EXCESS_MICROS 20 // Adapt it to your IR receiver module. 20 is recommended for the cheap VS1838 modules.
6161
62- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols.
62+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols.
6363
6464// #define DEBUG // Activate this for lots of lovely debug output from the decoders.
6565// #define DECODE_NEC // Includes Apple and Onkyo
Original file line number Diff line number Diff line change 8282// #define EXCLUDE_UNIVERSAL_PROTOCOLS // Saves up to 1000 bytes program memory.
8383// #define EXCLUDE_EXOTIC_PROTOCOLS // saves around 650 bytes program memory if all other protocols are active
8484// #define NO_LED_FEEDBACK_CODE // saves 92 bytes program memory
85- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols
85+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols
8686// #define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM.
8787// #define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition
8888
Original file line number Diff line number Diff line change 6666#endif
6767
6868// #define NO_LED_FEEDBACK_CODE // saves 92 bytes program memory
69- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols
69+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols
7070// #define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM.
7171// #define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition
7272
Original file line number Diff line number Diff line change 9292// to compensate for the signal forming of different IR receiver modules. See also IRremote.hpp line 142.
9393// #define MARK_EXCESS_MICROS 20 // Adapt it to your IR receiver module. 40 is taken for the cheap VS1838 module her, since we have high intensity.
9494
95- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols
95+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols
9696
9797// #define DEBUG // Activate this for lots of lovely debug output from the decoders.
9898
Original file line number Diff line number Diff line change 5656 */
5757#define MARK_EXCESS_MICROS 20 // Adapt it to your IR receiver module. 20 is recommended for the cheap VS1838 modules.
5858
59- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols
59+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols
6060// #define DEBUG // Activate this for lots of lovely debug output from the decoders.
6161
6262#include < IRremote.hpp>
Original file line number Diff line number Diff line change 3939// #define EXCLUDE_UNIVERSAL_PROTOCOLS // Saves up to 1000 bytes program memory.
4040// #define EXCLUDE_EXOTIC_PROTOCOLS // saves around 650 bytes program memory if all other protocols are active
4141// #define NO_LED_FEEDBACK_CODE // saves 92 bytes program memory
42- // #define RECORD_GAP_MICROS 12000 // Default is 5000 . Activate it for some LG air conditioner protocols
42+ // #define RECORD_GAP_MICROS 12000 // Default is 8000 . Activate it for some LG air conditioner protocols
4343// #define SEND_PWM_BY_TIMER // Disable carrier PWM generation in software and use (restricted) hardware PWM.
4444// #define USE_NO_SEND_PWM // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition
4545
Original file line number Diff line number Diff line change 158158 */
159159#if !defined(RECORD_GAP_MICROS)
160160// To change this value, you simply can add a line #define "RECORD_GAP_MICROS <My_new_value>" in your ino file before the line "#include <IRremote.hpp>"
161- #define RECORD_GAP_MICROS 5000 // FREDRICH28AC / LG2 header space is 9700 , NEC header space is 4500
161+ #define RECORD_GAP_MICROS 8000 // RECS80 (https://www.mikrocontroller.net/articles/IRMP#RECS80) 1 bit space is 7500µs , NEC header space is 4500
162162#endif
163163/* *
164164 * Threshold for warnings at printIRResult*() to report about changing the RECORD_GAP_MICROS value to a higher value.
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ bool IRrecv::decodeDistanceWidth() {
231231 Serial.print (F (" PULSE_DISTANCE_WIDTH: " ));
232232 Serial.print (F (" Space " ));
233233 Serial.print (tDurationTicks * MICROS_PER_TICK);
234- Serial.print (F (" is longer than " ));
234+ Serial.print (F (" is longer than maximum " ));
235235 Serial.print (DURATION_ARRAY_SIZE * MICROS_PER_TICK);
236236 Serial.print (F (" us. Index=" ));
237237 Serial.println (i);
You can’t perform that action at this time.
0 commit comments