You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Available as Arduino library "IRremote"
12
12
This library enables you to send and receive using infra-red signals on an Arduino.
13
13
14
14
# API
15
-
A Doxygen documentation of the sources is available on [project homepage](https://arduino-irremote.github.io/Arduino-IRremote/).
15
+
A Doxygen documentation of the sources is available on the [project homepage](https://arduino-irremote.github.io/Arduino-IRremote/).
16
16
17
17
# Installation
18
18
Click on the LibraryManager badge above to see the [instructions](https://www.ardu-badge.com/IRremote/zip).
@@ -82,7 +82,7 @@ If you do not know which protocol your IR transmitter uses, you have several cho
82
82
the old [IRLib](https://github.com/cyborg5/IRLib) and [Infrared4Arduino](https://github.com/bengtmartensson/Infrared4Arduino).
83
83
- To **increase strength of sent output signal** you can increase the current through the send diode, and/or use 2 diodes in series,
84
84
since one IR diode requires only 1.5 volt.
85
-
- The line #include "ATtinySerialOut.h" in PinDefinitionsAndMore.h (requires the library to be installed) saves 370 bytes program space and 38 bytes RAM for **Digispark boards** as well as enables serial output at 8MHz.
85
+
- The line \#include "ATtinySerialOut.h" in PinDefinitionsAndMore.h (requires the library to be installed) saves 370 bytes program space and 38 bytes RAM for **Digispark boards** as well as enables serial output at 8MHz.
86
86
- The default software generated PWM has **problems on ATtinies running with 8 MHz**. The PWM frequency is around 30 instead of 38 kHz and RC6 is not reliable. You can switch to timer PWM generation by `#define SEND_PWM_BY_TIMER`.
Copy file name to clipboardExpand all lines: src/IRremoteInt.h
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,9 @@
41
41
#error RAW_BUFFER_LENGTH must be even, since the array consists of space / mark pairs.
42
42
#endif
43
43
44
+
#defineMARK1
45
+
#defineSPACE0
46
+
44
47
/*
45
48
* Try to activate it, if you have legacy code to compile with version >= 3
46
49
*/
@@ -78,7 +81,7 @@ struct irparams_struct {
78
81
uint16_t rawbuf[RAW_BUFFER_LENGTH]; ///< raw data / tick counts per mark/space, first entry is the length of the gap between previous and current command
79
82
};
80
83
81
-
//#define DEBUG // Activate this for lots of lovely debug output.
84
+
//#define DEBUG // Activate this for lots of lovely debug output from the IRremote core and all protocol decoders.
82
85
/*
83
86
* Debug directives
84
87
*/
@@ -147,7 +150,7 @@ struct IRData {
147
150
uint16_t address; ///< Decoded address
148
151
uint16_t command; ///< Decoded command
149
152
uint16_t extra; ///< Used by MagiQuest and for Kaseikyo unknown vendor ID
150
-
uint8_t numberOfBits; ///< Number of bits received for data (address + command + parity) - to determine protocol length if different length are possible (currently only Sony).
153
+
uint8_t numberOfBits; ///< Number of bits received for data (address + command + parity) - to determine protocol length if different length are possible.
151
154
uint8_t flags; ///< See IRDATA_FLAGS_* definitions above
152
155
uint32_t decodedRawData; ///< Up to 32 bit decoded raw data, used for sendRaw functions.
153
156
irparams_struct *rawDataPtr; ///< Pointer of the raw timing data to be decoded. Mainly the data buffer filled by receiving ISR.
0 commit comments