|
41 | 41 | #ifndef IRremote_h |
42 | 42 | #define IRremote_h |
43 | 43 |
|
| 44 | +#define VERSION_IRREMOTE "3.1.0" |
| 45 | +#define VERSION_IRREMOTE_MAJOR 3 |
| 46 | +#define VERSION_IRREMOTE_MINOR 1 |
| 47 | + |
44 | 48 | /* |
45 | 49 | * If activated, BOSEWAVE, MAGIQUEST,WHYNTER and LEGO_PF are excluded in decoding and in sending with IrSender.write |
46 | 50 | */ |
|
84 | 88 | #warning "The macros DECODE_XXX no longer require a value. Decoding is now switched by defining / non defining the macro." |
85 | 89 | #endif |
86 | 90 |
|
| 91 | +/**************************************************** |
| 92 | + * For better readability of code |
| 93 | + ****************************************************/ |
| 94 | +#define DISABLE_LED_FEEDBACK false |
| 95 | +#define ENABLE_LED_FEEDBACK true |
| 96 | +#define USE_DEFAULT_FEEDBACK_LED_PIN 0 |
| 97 | + |
| 98 | +/**************************************************** |
| 99 | + * RECEIVING |
| 100 | + ****************************************************/ |
87 | 101 | /** |
88 | 102 | * MARK_EXCESS_MICROS is subtracted from all marks and added to all spaces before decoding, |
89 | 103 | * to compensate for the signal forming of different IR receiver modules |
|
104 | 118 | #define MARK_EXCESS_MICROS 20 |
105 | 119 | #endif |
106 | 120 |
|
| 121 | +/** |
| 122 | + * Minimum gap between IR transmissions, in microseconds |
| 123 | + * Keep in mind that this is the delay between the end of the received command and the start of decoding |
| 124 | + * and some of the protocols have gaps of around 20 ms. |
| 125 | + */ |
| 126 | +#if !defined(RECORD_GAP_MICROS) |
| 127 | +#define RECORD_GAP_MICROS 5000 // FREDRICH28AC header space is 9700, NEC header space is 4500 |
| 128 | +#endif |
| 129 | +/** Minimum gap between IR transmissions, in MICROS_PER_TICK */ |
| 130 | +#define RECORD_GAP_TICKS (RECORD_GAP_MICROS / MICROS_PER_TICK) // 221 for 1100 |
| 131 | + |
| 132 | +/* |
| 133 | + * Activate this line if your receiver has an external output driver transistor / "inverted" output |
| 134 | + */ |
| 135 | +//#define IR_INPUT_IS_ACTIVE_HIGH |
| 136 | +#ifdef IR_INPUT_IS_ACTIVE_HIGH |
| 137 | +// IR detector output is active high |
| 138 | +#define MARK 1 ///< Sensor output for a mark ("flash") |
| 139 | +#define SPACE 0 ///< Sensor output for a space ("gap") |
| 140 | +#else |
| 141 | +// IR detector output is active low |
| 142 | +#define MARK 0 ///< Sensor output for a mark ("flash") |
| 143 | +#define SPACE 1 ///< Sensor output for a space ("gap") |
| 144 | +#endif |
107 | 145 | /**************************************************** |
108 | 146 | * SENDING |
109 | 147 | ****************************************************/ |
|
0 commit comments