317 Commits

Author SHA1 Message Date
9d9075e76e Added missing #endif 2018-12-27 20:03:12 +01:00
793ea06011 Updated irRecv.h to include Nerf LOP 2018-12-27 17:05:33 +01:00
c1993b9c10 Updated IRremote.h to include NERF LOP 2018-12-27 17:03:36 +01:00
ae5cd09352 Created NERF Laser Ops Pro file 2018-12-27 16:59:26 +01:00
Rafi Khan
48339f7f60 Merge pull request #555 from LSUPERMAN735/patch-1
Create readmdFrench.md
2018-03-12 17:17:02 -04:00
LSUPERMAN735
c6788e54db Create readmdFrench.md
French translation by @Lsuperman735
2018-03-12 18:11:55 +01:00
Rafi Khan
06d54ce5b2 Merge pull request #542 from use-sparingly/master
Sparkfun Pro Micro Support
2018-01-03 18:52:44 -05:00
alastair.mccormack
8ba71c6489 Typo
Removed erroneous `//`
2017-12-03 21:27:35 +00:00
alastair.mccormack
72cd8c835f Sparkfun Pro Micro credit 2017-12-03 20:36:49 +00:00
alastair.mccormack
73b2c6e5a4 Removed whitespace 2017-12-03 20:22:37 +00:00
alastair.mccormack
3aaa564482 Supported board order
Correct Sparkfun Pro Micro position in supported board order
2017-12-03 20:19:16 +00:00
alastair.mccormack
b1eb407e54 Corrected TIMER4_HS output on Sparkfun Pro Micro
Use O̅C̅4̅A̅ (complimentary output pin)  to output to pin 5 (shared with OC3A) on Sparkfun Pro Micro
2017-12-03 20:09:23 +00:00
alastair.mccormack
9bce17ffab Added Sparkfun timer and pins information 2017-11-23 17:30:25 +01:00
alastair.mccormack
10b5077f56 Added Sparkfun Pro Micro pinouts
Used -DARDUINO_AVR_PROMICRO to  determine which timers are available and pin mapping.

Also removed separate ifdef in
2017-11-23 15:44:56 +01:00
Rafi Khan
0d0834a7de Merge pull request #519 from PaulStoffregen/master
Fix minor compiler warnings in examples
2017-09-09 17:53:45 -06:00
PaulStoffregen
a0a0c7eb78 Fix minor compiler warnings in examples 2017-09-04 20:48:37 -07:00
Rafi Khan
0cddce6dae Update Contributors.md (#488) 2017-07-24 14:51:03 -06:00
Rafi Khan
9c6395fb32 #481 note (#484) 2017-07-01 21:53:37 -07:00
Marc MERLIN
f33c845751 Add FAQ on mixing IR and neopixels (#451)
* Add FAQ on mixing IR and neopixels

As requested in https://github.com/z3t0/Arduino-IRremote/issues/435

* Update README.md
2017-04-22 20:44:19 -06:00
Rafi Khan
3172f38352 Merge pull request #436 from marcmerlin/patch-1
Added pointer for ESP8266 fork
2017-04-10 14:05:36 -06:00
Marc MERLIN
8cb40b77f8 Added pointer for ESP8266 fork
As requested in https://github.com/z3t0/Arduino-IRremote/issues/400
2017-04-09 19:55:49 -07:00
Rafi Khan
b838f3e7f7 Merge pull request #425 from marcmerlin/master
Added ESP32 IR receive support (IRsend not implemented yet).
2017-04-01 12:55:05 -06:00
Marc MERLIN
469edd4ff1 Fixed rev to 2.3.3 and added info on timer used. 2017-04-01 08:32:37 -07:00
Marc MERLIN
a7d8452266 Rev'ed to 2.2.4. 2017-03-31 23:10:07 -07:00
Marc MERLIN
32b9523fa7 Merge branch 'master' of github.com:marcmerlin/Arduino-IRremote 2017-03-31 22:33:16 -07:00
Marc MERLIN
64d071cd67 change no-op defines from '1' to ''. 2017-03-31 22:32:48 -07:00
Marc MERLIN
0774bbb27a Merge branch 'master' into master 2017-03-31 22:04:36 -07:00
Marc MERLIN
c292b40ea2 move comment about 'or else' chips that use TIMER2. 2017-03-31 22:01:31 -07:00
Marc MERLIN
53ebde2c3c Cleaned up ESP32 integration, reverted ESP32 ifdefs on irreceive examples.
- fixed indenting on existing code in a few places for consistency
- introduced IR_TIMER_USE_ESP32 for ifdefs within the code as per
  request
- added comments explaining what's missing for irsend support on ESP32
- IRrecvDemo.ino gets a warning before and after interrupt is enabled in
  case it causes a crash

TESTED=IoTuz ESP32 board and original 328p arduino to make sure current
code did not break.
2017-03-31 21:52:52 -07:00
Rafi Khan
44d63e7696 Merge pull request #427 from philipphenkel/lego_pf_integer_overflow_2
Fix calculation of pause length in LEGO PF protocol
2017-03-27 16:25:19 -06:00
Philipp Henkel
f7253ef4f3 Add Lego fix to change and bump version up to 2.2.3 2017-03-27 19:57:25 +02:00
Philipp Henkel
9105de0936 Fix calculation of pause length in LEGO PF protocol
Fix #384 Integer overflow in LEGO Power Functions affects pause between
messages
Is rebased version of PR #385
2017-03-26 22:32:55 +02:00
Marc MERLIN
e3ed422272 Rename ESP32 timer name so that it doesn't conflict with other timers. 2017-03-19 21:28:14 -07:00
Marc MERLIN
da8ffb78d5 Added ESP32 IR receive support (IRsend not implemented yet).
- disable a lot of defines not relevant to ESP32, set them to 1 (no-op)
- change default IR pin to 35 from 11
- changed serial speed to 115200 (9600 is too slow to keep up with IR input)
- irSend disables code that will not compile on ESP32. It won't work,
  but it won't break compilation either.
2017-03-19 20:27:56 -07:00
Rafi Khan
d28eebcd69 Merge pull request #414 from z3t0/z3t0-patch-1
Update ISSUE_TEMPLATE.md
2017-02-06 22:26:51 -06:00
Rafi Khan
896d917ce2 Update ISSUE_TEMPLATE.md 2017-02-03 21:18:47 -06:00
Rafi Khan
58bab3d05a Merge pull request #406 from z3t0/panasonic-jvc
IRrecord.ino typo
2017-01-26 21:11:10 -06:00
Rafi Khan
8cb322d159 Manual merge of #398 2017-01-22 01:52:14 -06:00
Rafi Khan
bbb7c82f24 Merge pull request #402 from felipenoris/fn/fix-msg
fix example error message
2017-01-14 14:14:16 -06:00
Felipe Noronha
b01619d457 fix example error message 2017-01-13 11:58:40 -02:00
Rafi Khan
70e60a3437 Merge pull request #377 from z3t0/z3t0-patch-3
Just gonna put this in here....
2016-11-12 00:02:17 -06:00
Rafi Khan
2969f52237 Just gonna put this in here.... 2016-11-11 22:28:41 -06:00
Rafi Khan
cf96d94995 Merge pull request #352 from bengtmartensson/boarddefs
Move board specific configuration info to new file boarddefs.h
2016-11-08 18:24:09 -06:00
Bengt Martensson
305bcde50f Merge branch 'boarddefs' of github.com:bengtmartensson/Arduino-IRremote into boarddefs 2016-11-07 17:04:41 +01:00
Bengt Martensson
4cd5a9147a Move board specific configuration info to new file boarddefs.h. 2016-11-07 17:02:34 +01:00
Rafi Khan
99c461235e Merge pull request #367 from z3t0/z3t0-patch-2
updated readme email notice
2016-10-26 22:05:22 -06:00
Rafi Khan
ebe6c6d08b updated readme email notice
far too many emails for things that should be an issue or  PR
2016-10-08 02:03:14 -06:00
Bengt Martensson
4dad022276 Move board specific configuration info to new file boarddefs.h. 2016-08-23 15:23:51 +02:00
Rafi Khan
7e47a1ef5b Merge pull request #350 from safaorhan/master
Update keywords.txt to add sendLG
2016-08-19 23:31:39 -06:00
safaorhan
1d66d463a8 Update keywords.txt
Add sendLG as KEYWORD2
2016-08-18 12:20:43 +03:00
Rafi Khan
16caf2a987 Merge pull request #343 from PaulStoffregen/master
Minor fixes for Teensy 3.x
2016-08-01 12:24:32 -06:00
PaulStoffregen
fdc51978c9 Allow any clock >= 8 MHz on Teensy 3.x 2016-08-01 07:08:17 -07:00
PaulStoffregen
f2f315dc28 Fix errors on Teensy 3.x 2016-08-01 06:55:56 -07:00
Rafi Khan
65313e1dc3 Merge pull request #336 from henkel/lego_pf_tests
Add Lego Power Functions tests
2016-07-26 23:31:43 -06:00
Philipp Henkel
a31fcd0cc4 Update changelog and version info 2016-07-27 07:25:52 +02:00
Philipp Henkel
074b3cc6fc Merge remote-tracking branch 'origin/lego_pf_tests' into lego_pf_tests 2016-07-26 22:28:06 +02:00
Philipp Henkel
749125db09 Add Lego Power Functions tests 2016-07-26 22:27:33 +02:00
Rafi Khan
9095dddbfe Merge pull request #340 from hmeine/master
Misleading link to "tutorials and more information"
2016-07-25 08:40:28 -06:00
Hans Meine
741a3382f3 rephrase sentence linking to (to-do) tutorials 2016-07-25 12:46:23 +02:00
Rafi Khan
656781c81b Merge pull request #337 from MCUdude/master
Add ATmega48 and ATmega88 to the list (+ some other minor commits)
2016-07-23 22:54:24 -06:00
Hans
25f7cd0f86 Update README.md 2016-07-22 19:31:14 +02:00
Hans
424631ef18 Added myself! 2016-07-15 22:30:02 +02:00
Hans
6e00f0b855 Added ATmega48 and ATmega88 2016-07-15 22:27:57 +02:00
Hans
b5ac2bac78 Added ATmega48 and ATmega88 2016-07-15 22:25:01 +02:00
Hans
f81a2ab4bd Added ATmega48 and ATmega88 2016-07-15 22:20:53 +02:00
Philipp Henkel
ada8fb6e9f Add Lego Power Functions tests 2016-07-12 23:14:47 +02:00
Rafi Khan
6463cdbe82 Merge pull request #334 from z3t0/z3t0-patch-2
Added Leonardo to hardware table #224 #281
2016-07-10 22:50:29 -06:00
Rafi Khan
e8173dec7d Added Leonardo to hardware table #224 #281 2016-07-10 23:42:23 -05:00
Rafi Khan
aabbcd9c07 Merge pull request #325 from z3t0/dev
Merging 2.2.0 into master
2016-06-28 01:17:50 -06:00
Rafi Khan
59cf4a8d6c slightly modified travis - TODO support more boards 2016-06-28 01:10:24 -06:00
Rafi Khan
594c626556 2.2.0 2016-06-28 00:59:31 -06:00
Rafi Khan
ac6a37779b added changelog 2016-06-28 00:59:20 -06:00
Hans
d70289787a There's no such thing as an ATmega8P 2016-06-26 12:04:52 +02:00
Hans
1e2c546064 Added more microcontrollers to the list 2016-06-26 12:02:25 +02:00
Hans
d5a46041be Added more microcontrollers 2016-06-26 11:43:22 +02:00
Hans
13498eb7c9 Update IRremoteInt.h 2016-06-26 11:33:46 +02:00
Hans
b097ec8fe3 Added support for more ATmegas!
Support for ATmega8535, ATmega16, ATmega32, ATmega64, ATmega128, ATmega164, ATmega324, ATmega644 and ATmega1284
2016-06-26 11:10:26 +02:00
Rafi Khan
5624b40a49 Merge pull request #309 from henkel/lego_power_functions
Add Lego Power Functions send protocol
2016-05-20 19:58:58 -06:00
Philipp Henkel
cb513739ef Update changelog and contributors 2016-05-04 22:08:52 +02:00
Philipp Henkel
00368d5dc7 Add supported device LEGO® Power Functions IR Receiver 8884 2016-04-27 23:51:56 +02:00
Philipp Henkel
a2331b607d Add Lego Power Functions send protocol 2016-04-27 21:57:57 +02:00
Rafi Khan
c8a8948dc7 Merge pull request #306 from ivankravets/patch-4
Cache PlatformIO packages using Travis CI container-based infrastructure
2016-03-28 11:56:12 -06:00
Ivan Kravets
e66b3076dd Merge branch 'master' into patch-4 2016-03-28 13:54:26 +03:00
Rafi Khan
2683d04b06 Merge pull request #305 from ivankravets/patch-3
Use tagged/versioned source code from repo
2016-03-27 16:05:28 -06:00
Ivan Kravets
e1ade65de0 Cache PlatformIO packages using Travis CI container-based infrastructure 2016-03-27 18:43:02 +03:00
Ivan Kravets
bc568b58d4 Use tagged/versioned source code from repo 2016-03-27 18:40:13 +03:00
Rafi Khan
558626196b Merge pull request #303 from AnalysIR/master
Fixed bug in ir_Dish.cpp for sending
2016-03-26 22:59:22 -06:00
AnalysIR
71e17dd1b1 Fixed bug in ir_Dish.cpp for sending
One of our users of AnalysIR, reported issues with sending DIsh signals. After some investigation we realised that this file was neglecting to send the trailing mark after the bits. Fix is included in this update & has been tested on a live Dish device by our own user.

AnalysIR - 26th March 2016
----------------------------------------
https://www.AnalysIR.com/
2016-03-26 14:22:06 +00:00
AnalysIR
aaf6a54ae7 Merge pull request #3 from z3t0/master
syncing with latest master
2016-03-26 14:14:33 +00:00
Rafi Khan
eaf4e41f10 Merge pull request #301 from z3t0/z3t0-patch-1
fix syntax
2016-03-24 17:57:42 -06:00
Rafi Khan
619425353f fix syntax 2016-03-23 01:06:24 -06:00
Rafi Khan
776df1ccf3 Merge pull request #300 from z3t0/z3t0-patch-1
added authors
2016-03-22 23:16:07 -06:00
Rafi Khan
f2b52ba857 added authors
feel free to add your self
2016-03-22 23:09:07 -06:00
Rafi Khan
ae33a85531 typo 2016-02-21 01:03:15 -06:00
Rafi Khan
3848c62de8 change travis link 2016-02-21 00:50:49 -06:00
Rafi Khan
3a8cc878ca Merge pull request #278 from z3t0/dev
Merge dev into master
2016-02-21 00:50:13 -06:00
Rafi Khan
ead74f6dbd added ISSUE_TEMPLATE 2016-02-21 00:48:41 -06:00
Rafi Khan
ca44211164 Contributing.md
added hardware specs table
2016-02-21 00:41:34 -06:00
Rafi Khan
e076964dcc added contribution guidelines 2016-02-21 00:13:00 -06:00
Rafi Khan
b8cb878aa4 added support boards section in the readme 2016-02-21 00:03:44 -06:00
Rafi Khan
f23e1bebec changed travis link for dev branch 2016-02-20 23:47:27 -06:00
Rafi Khan
a78d800b09 @2.1.0 #258 (updated changelog) 2016-02-20 23:46:02 -06:00
Rafi Khan
e718638518 Merge branch 'ElectricRCAircraftGuy-patch-1' into dev
merging #258
2016-02-20 23:41:18 -06:00
Rafi Khan
ac109b1634 Merge branch 'patch-1' of git://github.com/ElectricRCAircraftGuy/Arduino-IRremote into ElectricRCAircraftGuy-patch-1
merging #258
2016-02-20 23:40:50 -06:00
Rafi Khan
8168214647 @2.0.4 #54 (added changelog info) 2016-02-20 23:37:11 -06:00
Rafi Khan
dbb49b738c Merge branch 'lumbric-master' into dev
merging #54
2016-02-20 23:34:01 -06:00
Rafi Khan
20f0368ca2 Merge branch 'master' of git://github.com/lumbric/Arduino-IRremote into lumbric-master
working on merging #54
2016-02-20 23:33:11 -06:00
Rafi Khan
6e51379fe5 changed irsendraw parameter to const, #227 2016-02-20 23:17:45 -06:00
Rafi Khan
0d17ef59d8 added sublime workspace to gitignore 2016-02-20 23:17:07 -06:00
Rafi Khan
bbc36977d8 added sublime project file to gitignore 2016-02-20 23:02:55 -06:00
Gabriel Staples
a4b6db26f4 Update IRremote.cpp
very minor changes
2016-01-23 21:12:34 -05:00
Gabriel Staples
b226283882 Update IRremote.cpp
Further improved debug formatting, & added F macro to reduce RAM usage during prints.
2016-01-23 21:06:41 -05:00
Gabriel Staples
3e66d76511 Update IRremote.cpp to improve debugging
This is a small change, and definitely an improvement. I simply improved the debugging by stating whether a check passed or failed, for easier identification in debug mode.
2016-01-23 20:18:25 -05:00
Rafi Khan
27dff2ae60 Merge PR #241 Merge branch 'AnalysIR-master' 2015-12-02 23:57:22 +00:00
Rafi Khan
1a3fd3e310 merging #241 2015-12-02 23:57:00 +00:00
AnalysIR
47569a245e Create IRremoteInfo.ino
A helper tool to assist in supporting troubleshooting with IRremote.
Prints all of the current settings applied within the users IRremote set-up.
A description og the utility is available here: http://www.analysir.com/blog/2015/11/28/helper-utility-for-troubleshooting-irremote/
2015-11-28 21:11:08 +00:00
AnalysIR
31cfbc9dbd Merge pull request #2 from z3t0/master
Update from Original
2015-11-28 14:01:01 +00:00
Rafi Khan
6ed1d49b19 Update ir_Aiwa.cpp
fixed typo in line 12
2015-11-10 15:02:32 -06:00
Rafi Khan
35071167c0 Merge pull request #233 from ram-0000/patch-1
Update ir_Aiwa.cpp
2015-11-10 15:01:45 -06:00
ram-0000
e85aefd4cd Update ir_Aiwa.cpp
Remove unused mask variable line 31
2015-11-08 19:38:54 +01:00
Rafi Khan
b9e4c4ef7a Merge pull request #223 from PaoloP74/master
Update version to 2.0.1
2015-09-28 20:46:21 -06:00
Rafi Khan
2c1ea568e4 Contact info @readme.md 2015-09-28 20:45:55 -06:00
Paolo Paolucci
e07c845676 Update version to 2.0.1 2015-09-25 09:23:22 +02:00
Paolo Paolucci
e3a5f01b04 Errata corrige keyword file 2015-09-25 09:22:25 +02:00
Paolo P
ea8112124f Update version to 2.0.1
Update to version 2.0.1
2015-09-24 11:43:33 +02:00
Rafi Khan
fbf76c18ee Merge pull request #215 from audetto/master
Merge back irISR.cpp into irRemote.cpp to avoid a linker issue
2015-09-10 15:52:44 -06:00
Rafi Khan
2c890bb103 Merge pull request #219 from bessl/master
Changed library name "RobotIRremote"
2015-09-09 09:00:35 -06:00
Bernhard Essl
4d44cd18f2 Merge pull request #1 from bessl/bessl-patch-1
Changed library name "RobotIRremote"
2015-09-09 10:49:16 +02:00
Bernhard Essl
aeb49b5a55 Changed library name "RobotIRremote" 2015-09-09 10:47:28 +02:00
Andrea Odetti
dcea4b32ce Merge back irISR.cpp into irRemote.cpp to avoid an issue due to the absence of exported symbols from irISR.cpp
see

https://github.com/z3t0/Arduino-IRremote/issues/214
https://github.com/sudar/Arduino-Makefile/issues/376

In some circumstances the linker skips irISR.cpp

irRemote.cpp is always included (by the linker).

Andrea
2015-09-02 20:19:03 +01:00
Rafi Khan
481972658d Merge pull request #213 from AnalysIR/master
Update IRrecvDumpV2.ino
2015-08-28 16:43:43 -06:00
AnalysIR
a07587f252 Update IRrecvDumpV2.ino
- Cleaned up layout of output, removed trailing commas
- buffer sizes are now correct
- no need to add 0 for space at end, as sendRAW takes care of this
2015-08-28 15:56:18 +01:00
Rafi Khan
e73eae5e02 Merge pull request #212 from chaeplin/master
LG_AC : heating option
2015-08-27 13:28:25 -06:00
chaeplin
c326a4e073 typo 86 / 30 2015-08-28 04:15:04 +09:00
chaeplin
79d9cc78c5 decoding for LG A/C 2015-08-28 04:02:47 +09:00
chaeplin
67f0bf2f9a Fahrenheit 2015-08-28 03:36:26 +09:00
chaeplin
ac1b2d28dd add heating 2015-08-27 21:09:30 +09:00
chaeplin
72d3d4dc26 typo 2015-08-27 21:04:34 +09:00
chaeplin
0f03eeeaf2 heating 2015-08-27 21:01:26 +09:00
chaeplin
969b34fcc4 Revert "Revert "heating""
This reverts commit ee067b1cb3.
2015-08-27 20:58:38 +09:00
chaeplin
ee067b1cb3 Revert "heating"
This reverts commit 594722ad4d.
2015-08-27 20:58:00 +09:00
chaeplin
594722ad4d heating 2015-08-27 20:55:40 +09:00
Rafi Khan
bba4ed8065 corrected a typo 2015-08-26 16:16:26 -06:00
Rafi Khan
934ad53aad Update README.md 2015-08-26 16:14:26 -06:00
Rafi Khan
a5c2833e11 Merge pull request #203 from chaeplin/LG_AC
adding SEND_LG
2015-08-26 16:10:11 -06:00
Rafi Khan
5060ce594e Merge pull request #207 from AnalysIR/master
Bug fixes as per Issue #167
2015-08-26 16:09:32 -06:00
AnalysIR
54e22eba82 Update IRrecvDumpV2.ino
Fixed presentation & 2 bugs.

Presentation: No longer display leading space in timings, as is confusing to users & essentially irrelevant.
Bug Fix 1: rawData was starting with a space & would not work with sendRaw
Bug Fix 2: chaned x from unsigned int to nsigend long to avoid potential overflow on integer multiplication.

very similar to recent changes to IRrecDump #167  #207
2015-08-25 01:00:56 +01:00
AnalysIR
646a93a9cd Bug fixes as per Issue #167
Have updated IRrecvDdump to fix bugs described in Issue: #167

In summary, removed bug where large space values were displayed incorrectly & confusing users. The output now always starts with a mark, instead of a space, which makes it easier to interpret and less confusing for users.

refer to #167 for more detials.

The update has been tested with several protocols (but not all) and verified as working.
2015-08-25 00:34:54 +01:00
Rafi Khan
668f290759 Merge pull request #206 from AnalysIR/master
Create IRsendRawDemo
2015-08-24 15:06:30 -06:00
AnalysIR
03c8fedd02 Delete IRsendRawDemo.ino
moved to own folder to maintain consistency with other examples
2015-08-24 21:26:08 +01:00
AnalysIR
c9ffe47ae1 Create IRsendRawDemo.ino
New example should go into new fordel of same name...sorry
2015-08-24 21:25:22 +01:00
AnalysIR
c09ade268a Rename IRsendRawDemo to IRsendRawDemo.ino
forgot to put .ino extension on file.

now corrected
2015-08-24 21:21:46 +01:00
AnalysIR
b84825f261 Create IRsendRawDemo
As sendRaw is a very popular methos of sending unknown or AC signals, I though it would be very useful to include and example of same with the library.

The code in this new example is tested and verified as working with the latest Master.
2015-08-24 21:17:23 +01:00
Rafi Khan
ca52f05a50 Merge pull request #205 from AnalysIR/master
Update IRsendDemo.ino
2015-08-24 13:55:45 -06:00
AnalysIR
50fa64bfad Update IRsendDemo.ino
As written this example will cause issues with some IR receivers. On the face of it it sends teh sony signal burst 3 times with a 40ms gap. However, it really continues to send the sony signal forever with a 40ms gap.

There needs to be a reasonable gap between signals sent & I have added in a 5 sec gap as a reasonable figure.

Without a gap, many IR receivers will treat this signal as noise as it send continuous sony bursts with a 40 ms gap.
2015-08-24 20:37:41 +01:00
chaeplin
97078a581a adding SEND_LG 2015-08-22 19:06:22 +09:00
Rafi Khan
2678449f99 Merge pull request #202 from AnalysIR/master
change int to unsigned int in IRrecvDumpV2
2015-08-20 10:19:26 -06:00
AnalysIR
3d3c2b9b28 Update IRrecvDumpV2.ino
looks like this multiplier was omitted and needs to be include to make the output meaningful/useful???

Would also explain some weird output I have seen posted.
2015-08-20 15:53:50 +01:00
AnalysIR
ef4ba97522 change int to unsigned int in IRrecvDumpV2
some larger values could overflow to negative numbers, with unsigned int (vs int)
2015-08-20 15:46:23 +01:00
Rafi Khan
4a8faa70c8 Merge pull request #201 from AnalysIR/master
Updates to IRremote.h, irSend.cpp. by @AnalysIR
2015-08-19 17:07:35 -06:00
AnalysIR
b00f6ad5e1 Update parameters for mark,space and sendraw
parameters changed from int to unsigned int to allow longer mark/space durations and signal length.
hz changed to allow for potential future use of 455kHz carrier frequency. (Ther may be existing modes to the library, using this frequency)
2015-08-19 23:24:59 +01:00
AnalysIR
23ac8dc109 Merge pull request #1 from AnalysIR/AnalysIR-IRremote-patch-1-1
changes to  senRAW, mark,space,custom_delay_usec
2015-08-19 23:19:14 +01:00
AnalysIR
7925fcd36b changes to senRAW, mark,space,custom_delay_usec
parameters changed from int to unsigned int to allow longer mark/space durations and signal length.hz changed to allow for potential future use of 455kHz carrier frequency. (Ther may be existing modes to the library, using this frequency)

removed "asm" workaround for compiler, because it was not need ed on my system.
Original autor should verify this again. It could be alternatice compiler optimization settings?
Alternatively, place the volatile keyword before the variables in the function to avoid the "optimization out"
2015-08-19 23:17:03 +01:00
Rafi Khan
d7a4fba705 Merge pull request #198 from pcoughlin/master
update custom_delay function
2015-08-15 14:04:34 -06:00
Paul Coughlin
ee655f09ea update custom_delay function
Use micros() to delay based on "real-time" instead of approximation with
delay() or delayMicroseconds()

Changed name to _usec to correspond to MicroSeconds.
_ms is MilliSeconds.
2015-08-14 20:22:34 -06:00
Rafi Khan
5ee3905157 Fixed delay method by replacing delayMicroseconds call with a loop if
it is too long.
2015-08-13 16:54:59 -06:00
Rafi Khan
25424cb5d8 solves #195 2015-08-12 14:16:51 -06:00
Rafi Khan
f3ddc8543e Removed a windows encoding line in irISR.cpp, #192 2015-08-11 00:17:55 -06:00
Rafi Khan
79af2d3cca Fixed README links. 2015-08-10 14:41:13 -06:00
Rafi Khan
32beed8100 wrapped getRCLevel function with #if DECODE_RC5/6 2015-08-10 14:33:35 -06:00
Rafi Khan
b765bf1052 changed ifdef to if in IRRecv 2015-08-10 14:31:27 -06:00
Rafi Khan
6ce4df9134 fixed previous commit 2015-08-10 14:12:03 -06:00
Rafi Khan
b4c0143dca Working on sendRaw Bug 2015-08-10 13:53:56 -06:00
Rafi Khan
e582bd1442 Merge pull request #183 from madmalkav/master
Added suport for user defined IR reception feedback LED
2015-08-09 21:31:08 -06:00
madmalkav
8516174dad Added suport for user defined IR reception feedback LED 2015-07-31 20:58:04 +02:00
Rafi Khan
a3d8d5898d Merge pull request #182 from ivankravets/patch-1
Update Travis CI badge with @z3t0 account
2015-07-30 11:44:29 -06:00
Rafi Khan
2dcc37ab0a Update IRsendDemo.ino 2015-07-30 11:43:59 -06:00
Ivan Kravets
927ddf229e Update Travis CI badge with @z3t0 account 2015-07-30 19:24:12 +03:00
Rafi Khan
68fc8dd7c3 Update Contributors.md 2015-07-30 00:14:55 -06:00
Rafi Khan
74cd48baa8 Travis CI workingvim README.md ! added the badge 2015-07-30 00:03:15 -06:00
Rafi Khan
5ff5cd753a dummy commit to test travis ci 2015-07-30 00:01:37 -06:00
Rafi Khan
0d973bb7b8 Removed Travis Badge, will add when Travis is working 2015-07-26 23:03:39 -06:00
Rafi Khan
5b9d8f16f2 Merge pull request #107 from shirriff/experimental
Merging 2.1 (#107 Experimental) to master where development will continue
2015-07-26 22:41:31 -06:00
Rafi Khan
9eb9e60db5 Updated changelog 2015-07-26 22:38:20 -06:00
Rafi Khan
945472807f Added pin comment for ATtiny84 2015-07-26 22:37:56 -06:00
Rafi Khan
99769349a3 Updating Changelog - test 1 2015-07-26 22:13:24 -06:00
Rafi Khan
8d0a044981 #176 2015-07-24 16:36:09 -06:00
Rafi Khan
ca7f7cd654 07236dd6d 2015-07-24 16:35:28 -06:00
Rafi Khan
07236dd6d5 added isIdle Method for receiving, #48 2015-07-23 19:39:46 -06:00
Rafi Khan
67330bb22c Add support for ATtiny85 2015-07-23 19:12:23 -06:00
Rafi Khan
3b99380e3b Add support for ATtiny84 2015-07-23 19:04:22 -06:00
Rafi Khan
1072a9048f testing travis 2015-07-16 19:47:11 -06:00
Rafi Khan
393407ebfd Merge branch 'ivankravets-master' into experimental
Conflicts:
	README.md
2015-07-16 19:41:40 -06:00
Rafi Khan
a23d4ea4f6 Merge branch 'master' of git://github.com/ivankravets/Arduino-IRremote into ivankravets-master 2015-07-16 18:59:10 -06:00
Rafi Khan
56999760c5 Experimental Release 2015-07-11 15:43:18 -06:00
Rafi Khan
0b0719045e Added pin variable in IRrecvDumpV2 2015-07-11 15:22:18 -06:00
Rafi Khan
85679b491f Added option for Teensy 3.1's processor. This is NOT a fix to #171 2015-07-11 00:35:30 -06:00
Rafi Khan
ee13760c60 Add Teensy LC Support, confirmed working @48Mhz with RecvDemo 2015-07-08 16:22:50 -06:00
Rafi Khan
b2b278f8f7 Merge pull request #169 from csBlueChip/master
Fix coding error in send loops (specify bit size of literal)
2015-07-08 13:56:44 -06:00
Bluechip
ec40cdfea2 Fix coding error in send loops (specify bit size of literal) 2015-07-01 20:06:51 +01:00
Rafi Khan
2619ed667e added changelog 2015-06-26 12:25:39 -06:00
Rafi Khan
7eeff377f4 Merge branch 'master' of https://github.com/csBlueChip/Arduino-IRremote into experimental 2015-06-26 11:41:58 -06:00
Rafi Khan
7ddf860bb2 Merge pull request #160 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2015-06-26 11:35:59 -06:00
The Gitter Badger
02d6ec8ff9 Added Gitter badge 2015-06-25 22:59:19 +00:00
Bluechip
48b77fe90a https://github.com/shirriff/Arduino-IRremote/issues/156
Improve output for recvDumpV2
Added my name to the contributors list (not 'cos I really care for the credit <whatever> but so people know who to "blame" [non-pejorative])
Moved the decode() function to the top of the source as it is likely to be edited the most
2015-06-22 21:23:53 +01:00
Bluechip
ee907442b1 Fixup test harness & frequency calculator in Pronto code 2015-06-21 18:34:40 +01:00
Bluechip
f4e33ca456 Additional comments in Denon code 2015-06-21 18:33:47 +01:00
Bluechip
0ca6c4ed1b Added sendPronto() 2015-06-21 18:13:21 +01:00
Bluechip
17801ef132 Started work on supporting Pronto Codes 2015-06-21 03:11:24 +01:00
Bluechip
87639f8b45 Add Denon support
Improve comments
Fixup DECODE_AIWA_RC_T50
Simplify template
2015-06-21 01:20:44 +01:00
Bluechip
89d82ad930 Improve documentation and fixup IRrecvDumpV2.ino 2015-06-20 22:08:13 +01:00
Bluechip
e213019fca Fixup old examples
Add new example
2015-06-20 22:03:00 +01:00
Bluechip
4811a3d86a correct typo 2015-06-20 21:09:44 +01:00
Bluechip
b9694f2442 Added a template for new protocols with full instructions in a big comment at the top 2015-06-20 21:08:21 +01:00
Bluechip
70d50b700f Removed explicit values in enumeration 2015-06-20 21:07:40 +01:00
Bluechip
c58507655c More cleanup and a few minor optimisations 2015-06-20 20:27:59 +01:00
Bluechip
6087fabfe1 ISR Commenting 2015-06-20 18:33:00 +01:00
Bluechip
5c217f0ee9 Abbreviated (Panasonic) address handling 2015-06-20 18:27:10 +01:00
Bluechip
41e822997b Introduced overflow detection code to the ISR State Machine 2015-06-20 18:26:23 +01:00
Bluechip
7f639d18d8 Increased RAWLEN to 101 to stop Panasonic codes overflowing 2015-06-20 18:24:50 +01:00
Bluechip
e1dda22c6d Commenting formatting
move ISR macros to ISR header
2015-06-20 17:54:18 +01:00
Bluechip
0f11e2feef Remove use of macro TOPBIT 2015-06-20 17:51:40 +01:00
Bluechip
835b9d19be Commenting 2015-06-20 17:51:10 +01:00
Bluechip
f46e30720c Bit more code cleanup 2015-06-20 14:42:59 +01:00
Bluechip
315aecdada Broken the source in to manageable chunks - 2KLOC files are not fun to debug!
Utterly failed to reduce the MARK_?? functions back down to MACROs - every time I try, the decoders start failing ...However, I have found a considerable number of bugs in the toolchain, so I'm starting to wonder if the fault is not mine.
2015-06-20 04:29:28 +01:00
Bluechip
0da14cd36b Compiling, all functionality enabled, tested with Panasonic 2015-06-20 01:20:25 +01:00
Bluechip
62696e0f4d Finish sendXXX() cleanup
Move NEC decode to be with NEC send
2015-06-19 00:12:29 +01:00
Bluechip
f5e85e9432 Bit more cleanup
Guests have arrived - sanity checkin
2015-06-18 19:52:22 +01:00
Bluechip
e6ae660100 Optimise send() loops
Query accuracy of sendAiwaRCT501() [see inline comment]
2015-06-18 19:24:21 +01:00
Bluechip
43cbf2d002 Whitespace cleanup on for() loops 2015-06-17 23:12:32 +01:00
Bluechip
4938c307e0 Cleaned up the DEBUG output 2015-06-17 23:04:47 +01:00
Bluechip
4324bb9e99 Reduce one-line-if's down to one line 2015-06-17 22:54:43 +01:00
Bluechip
d6ef2f99fa Standardise function headers for consistent coding style 2015-06-17 22:25:34 +01:00
Bluechip
99d04629bc Standardise commenting as C++ style throughout 2015-06-17 22:16:43 +01:00
Bluechip
b9e5b969f7 Clearly mark the start of every function to aid is source navigation & code maintainability 2015-06-17 21:59:04 +01:00
Ivan Kravets
3a21c0e413 Switch to stable release of @PlatformIO 2015-05-27 17:18:01 +03:00
Ivan Kravets
ad42149c56 Continuous Integration with @travis-ci + @PlatformIO 2015-05-23 19:35:45 +03:00
Rafi Khan
e9e4410a05 Update README.md 2015-05-14 16:32:48 -06:00
Rafi Khan
97909f86f0 #133 2015-04-26 17:06:52 -06:00
Rafi Khan
e0a1312606 Merge pull request #119 from jan-r/ATmega8-IRQ-fix
Fixed problem with interrupt enable/disable on ATmega8
2015-04-18 14:18:02 -06:00
joshua noble
a0a67f4d37 Merge pull request #124 from levsa/master
Added different ifdefs for SEND and DECODE. Enum for decode_type. ifdef errors fixed.
2015-04-10 10:49:40 -07:00
Levon Saldamli
0ec2bf5696 Changed ifdefs for SEND and DECODE, created enum for decode_type_t. Corrected ifdef errors, issues #121, #122, #123). 2015-04-06 18:17:53 +02:00
Levon Saldamli
d7f2b1b08f Library properties for arduino 1.0.5 to recognize as library. 2015-04-06 17:16:27 +02:00
jan-r
e3567c7945 Fixed problem with interrupt enable/disable on ATmega8
Previously, when enabling or disabling interrupts on the ATmega8, the
whole TIMSK register was overwritten. This disables all other timer
interrupts (for Timer0 and Timer2). The fix takes care of that by
selectively enabling/disabling the required OCIE1A flag.
2015-04-04 11:02:53 +02:00
Rafi Khan
05db6714af Quick fix for previous commit 2015-03-16 12:07:55 -06:00
Rafi Khan
0e82cf540c Add Aiwa protocol to keywords 2015-03-16 12:07:21 -06:00
joshua noble
f08064bb96 Updating for device usage 2015-03-15 19:41:46 -07:00
Joshua Noble
111c96ab58 merging 110 2015-03-15 13:28:46 -07:00
Rafi Khan
4e6fb9ecf4 Merge pull request #61 from crash7/master
Added Aiwa protocol (remote control RC-T501).
2015-03-14 21:04:30 -06:00
sstefanov
a8b4269ca7 Added possibility to exclude non-necessary libraries by comment lines in IRremote.h 2015-03-12 14:49:48 +02:00
Rafi Khan
e2a7f22c1f Update Contributors.md 2015-03-10 15:43:28 -06:00
Rafi Khan
f6066c3e65 Added Lauszus to contrib. 2015-03-10 15:43:13 -06:00
Rafi Khan
cb6b1b622d Added reference to GitHub page 2015-03-09 18:54:25 -06:00
Rafi Khan
b8043a7415 Releases can be found on the releases page. 2015-03-09 13:01:25 -06:00
Rafi Khan
beef4710a3 Moved contributors to a different file 2015-03-08 19:42:47 -06:00
Rafi Khan
7bf1e8d92d Added Neco777 to contributors 2015-03-08 19:40:16 -06:00
Rafi Khan
0dfa1925a8 add crash7 to contributors list 2015-03-08 17:38:20 -06:00
Rafi Khan
1e1ec53911 remove index (for real) 2015-03-08 17:37:06 -06:00
Rafi Khan
4efc4d6bc8 Merge branch 'master' of https://github.com/shirriff/Arduino-IRremote 2015-03-08 17:35:45 -06:00
Rafi Khan
4a7e85b65c removed index 2015-03-08 17:35:21 -06:00
Rafi Khan
97e7423260 Added GitHub Page 2015-03-08 17:30:36 -06:00
Rafi Khan
8a40178ad2 Merge pull request #90 from ivankravets/patch-1
PlatformIO Library Manager manifest file
2015-03-08 17:16:29 -06:00
Christian Musa
3327011ec8 Added Aiwa protocol (remote control RC-T501).
Added Aiwa protocol (remote control RC-T501) based on lirc file.
Updated IRrecvDump example, added SendDemo example (AiwaRCT501SendDemo).
2015-03-08 19:40:03 -03:00
Rafi Khan
c448327a92 Fixed broken links 2015-03-08 16:07:40 -06:00
Rafi Khan
f5d5b58a3d Add contributors to readme 2015-03-08 16:03:41 -06:00
Rafi Khan
155fcce927 Readme is branch independent 2015-03-07 23:33:59 -06:00
Rafi Khan
d18b36fdeb NEC_ONE_SPACE should actually be 1690 2015-03-07 18:10:22 -06:00
Rafi Khan
c7ef1a226d Merge pull request #102 from cltnschlosser/patch-1
Add LG keyword to keywords file from #102
Credits: @cltnschlosser
2015-03-07 17:32:52 -06:00
Rafi Khan
05919f370a Merge pull request #105 from fmeschia/master
Added Whynter A/C remote protocol from #105. 
Credits: @fmeschia
2015-03-07 17:31:21 -06:00
Rafi Khan
17091aa096 Fixed typo 2015-03-07 17:24:50 -06:00
Rafi Khan
51534b383f Revamped README 2015-03-07 17:22:29 -06:00
Rafi Khan
77938e93c4 Fix #41
Fixes #41 by implementing the solution by @canondale
2015-03-07 16:53:43 -06:00
Francesco Meschia
723ceccd05 Added Whynter A/C remote protocol
Tested with Whynter ARC-110WD
2015-02-06 21:29:56 -08:00
Colton Schlosser
bb0bb24021 Add LG keyword 2015-01-10 14:17:43 -06:00
joshua noble
935ba3f51d Merge pull request #22 from PaulStoffregen/master
Teensy 3.0 compatibility
2014-11-16 07:20:33 -08:00
Ivan Kravets
7398213165 Avoid trademark issues with library name
Added frameworks and platforms fields
2014-10-20 11:41:09 +03:00
Ivan Kravets
b54ed9bbd2 PlatformIO-based manifest file
Web: http://platformio.ikravets.com/#!/lib/show/Arduino-IRremote
Docs: http://docs.platformio.ikravets.com/en/latest/librarymanager/index.html
2014-09-25 14:18:56 +03:00
joshua noble
04d397a51d Merge pull request #84 from Informatic/sendsharp
sendSharp cleanup and API change
2014-09-21 20:52:40 -07:00
Piotr Dobrowolski
c6342d2932 Update keywords.txt 2014-09-17 23:21:54 +02:00
Piotr Dobrowolski
d9d2b74a30 sendSharp API change to make it compatible with decodeSharp 2014-09-17 22:34:41 +02:00
Piotr Dobrowolski
9e079396d0 Cleanup sendSharp and fix reliability 2014-09-17 22:33:14 +02:00
joshua noble
3e2d5434bd Merge pull request #73 from DaAwesomeP/master
Add delay to IRrecvDemo Loop preventing duplicates
2014-08-28 21:47:31 -07:00
P THE AWESOME
453939814a Add delay to IRrecvDemo Loop preventing duplicates
Prevents duplicates in serial when button was only pressed once.
2014-08-04 16:19:07 -05:00
joshua noble
e899b1ff12 Merge pull request #69 from vk2tds/master
LG A/C remote protocol decoding
2014-07-10 09:30:01 -07:00
Darryl Smith
10f2b889c0 Updates for LG Air Conditioner Remote 2014-07-10 08:27:36 +10:00
vk2tds
2bf17395a9 Update IRremoteInt.h 2014-07-07 08:27:15 +10:00
joshua noble
6e55c8595f Merge pull request #62 from sstefanov/master
Added Samsung protocol
2014-06-23 08:42:25 -07:00
joshua noble
b65240669d Merge pull request #31 from X-Y/master
Multiple definition of "MATCH" error when running IRtest
2014-06-08 11:18:32 -07:00
sstefanov
890ca057f6 Added Samsung protocol 2014-05-23 12:20:39 +03:00
lumbric (antares)
f396a790f7 adding Panasonic and JVC types for IRrecord 2014-02-20 21:35:50 +01:00
joshua noble
239964fabf Merge pull request #34 from joshuajnoble/master
adding Attiny84 for Arduino Tiny
2013-07-23 16:51:07 -07:00
Joshua Noble
4d7c915772 updating timer interrupt name for Attiny84 2013-07-23 16:50:20 -07:00
Joshua Noble
5898d346ad adding Attiny84 2013-07-18 11:21:21 -07:00
Xun Yang
91dad6238a Fixed MATCH, MATCH_MARK, MATCH_SPACE when both IRremoteInt.h and IRremoteInt.h are included in sketch 2013-06-14 17:15:28 +02:00
PaulStoffregen
9d8865eda4 Add support for Teensy 3.0 2013-01-20 06:48:13 -08:00
Ken Shirriff
4a55923e49 Merge pull request #13 from TKJElectronics/master
Added support for Arduino Leonardo
2012-08-13 23:18:25 -07:00
Kristian Lauszus
da8b8e1c2d Added support for Leonardo 2012-08-14 01:24:14 +02:00
Ken Shirriff
2b14770264 Update readme for 1.x
Improve download and installation instructions. Remove obsolete 0018 version instructions.
2012-08-08 09:05:39 -07:00
Ken Shirriff
5896bf76b8 mitra changes
Conflicts:
	IRremote.cpp
	IRremote.h
	IRremoteInt.h
	keywords.txt
2012-08-06 23:43:43 -07:00
Ken Shirriff
422ce8c793 Merge branch 'master' of https://github.com/sEpt0r/Arduino-IRremote
Conflicts:
	IRremoteInt.h
2012-08-05 23:46:35 -07:00
Ken Shirriff
f7a2263cdb Merge pull request #11 from fpo/patch-1
Timer2 disable interrupt
2012-06-05 23:00:56 -07:00
Ken Shirriff
5fadf82dd4 Merge pull request #7 from TKJElectronics/master
Added panasonic and JVC protocol and updated the library for Arduino IDE 1.0
2012-06-05 23:00:07 -07:00
fpo
0def061d83 i think that's the correct way. 2012-06-03 13:48:42 +03:00
Kristian Lauszus
c05929c40e Added support for ATmega2560 2012-03-21 21:31:41 +01:00
Kristian Lauszus
4b2dbddd06 Set panasonic carrier frequency to 35 kHz 2012-03-20 22:21:16 +01:00
Vasiliy Marnopolskiy
d0ca6c155d Support board with Atmega8 2012-02-14 00:56:34 +04:00
Kristian Lauszus
1bc442fdf8 Added keywords 2012-02-08 18:15:48 +01:00
Kristian Lauszus
29a056daf2 Added panasonic and JVC protocol
Most work already done by zenwheel, but the sendPanasonic command
didn't work. Sending and decoding is confirmed to work with using both
the JVC and Panasonic protocol.
The library has also been updated to work with Arduino IDE 1.0.
2012-02-08 18:09:18 +01:00
Ken Shirriff
e9158a57eb Add wiki link 2011-05-05 22:28:58 -07:00
Ken
dbea1de1a8 Merge branch 'master' of https://github.com/toddtreece/Arduino-IRremote into toddtreece-master 2010-12-09 22:49:55 -08:00
Todd Treece
baede92da0 updated website info in documentation for sharp and dish support 2010-12-08 18:18:37 -05:00
Ken
3fe2e5b99d Support multiple devices and platforms.
Patched in changes from Paul Stoffregen (http://www.pjrc.com/teensy/td_libs_IRremote.html)
2010-11-17 19:19:25 -08:00
Ken
02e12ed80c Update readme. 2010-11-15 22:36:42 -08:00
Ken
3cc3c306c6 Add Test2.
This tests functionality using a pair of Arduinos.
2010-11-15 22:05:16 -08:00
Todd Treece
b4847a2685 Updated Sharp protocol documentation 2010-09-20 15:35:29 -04:00
Ken Shirriff
acca27b698 Fix CRLF issues.
Many problems happen with git due to some machines liking CRLF at the
end of lines, and others linking CR.  To try to straighten this out,
I'm using Unix-style LF (\n) as the line endings.  To make sure your
repository remains consistent, try:

$ git config --global core.autocrlf input

For details, see:
http://help.github.com/dealing-with-lineendings/
2010-05-15 15:21:48 -07:00
Ken Shirriff
19320b2144 Add information on downloading from github. 2010-03-20 23:56:27 -07:00
10 changed files with 259 additions and 42 deletions

View File

@@ -79,6 +79,9 @@
#define DECODE_LEGO_PF 0 // NOT WRITTEN
#define SEND_LEGO_PF 1
#define DECODE_NERF_LOP 0 // NOT WRITTEN
#define SEND_NERF_LOP 1
//------------------------------------------------------------------------------
// When sending a Pronto code we request to send either the "once" code
// or the "repeat" code
@@ -119,6 +122,7 @@ typedef
DENON,
PRONTO,
LEGO_PF,
NERF_LOP,
}
decode_type_t;
@@ -251,6 +255,10 @@ class IRrecv
# if DECODE_LEGO_PF
bool decodeLegoPowerFunctions (decode_results *results) ;
# endif
//......................................................................
# if DECODE_NERF_LOP
bool decodeNerfLOP (decode_results *results) ;
# endif
} ;
//------------------------------------------------------------------------------
@@ -339,6 +347,10 @@ class IRsend
# if SEND_LEGO_PF
void sendLegoPowerFunctions (uint16_t data, bool repeat = true) ;
# endif
//......................................................................
# if SEND_NERF_LOP
void sendNerfLOP (uint16_t data, bool repeat = true) ;
# endif
} ;
#endif

View File

@@ -33,6 +33,7 @@ Whether you use the Adafruit Neopixel lib, or FastLED, interrupts get disabled o
- ATtiny 84 / 85
- ESP32 (receive only)
- ESP8266 is supported in a fork based on an old codebase that isn't as recent, but it works reasonably well given that perfectly timed sub millisecond interrupts are different on that chip. See https://github.com/markszabo/IRremoteESP8266
- Sparkfun Pro Micro
We are open to suggestions for adding support to new boards, however we highly recommend you contact your supplier first and ask them to provide support from their side.
@@ -43,7 +44,7 @@ We are open to suggestions for adding support to new boards, however we highly r
| [ATtiny84](https://github.com/SpenceKonde/ATTinyCore) | **6** | **1** |
| [ATtiny85](https://github.com/SpenceKonde/ATTinyCore) | **1** | **TINY0** |
| [ATmega8](https://github.com/MCUdude/MiniCore) | **9** | **1** |
| Atmega32u4 | 5, **9**, 13 | 1, 3, **4** |
| Atmega32u4 | 5, 9, **13** | 1, 3, **4** |
| [ATmega48, ATmega88, ATmega168, ATmega328](https://github.com/MCUdude/MiniCore) | **3**, 9 | 1, **2** |
| [ATmega1284](https://github.com/MCUdude/MightyCore) | 13, 14, 6 | 1, **2**, 3 |
| [ATmega164, ATmega324, ATmega644](https://github.com/MCUdude/MightyCore) | 13, **14** | 1, **2** |
@@ -51,6 +52,7 @@ We are open to suggestions for adding support to new boards, however we highly r
| [ATmega64, ATmega128](https://github.com/MCUdude/MegaCore) | **13** | **1** |
| ATmega1280, ATmega2560 | 5, 6, **9**, 11, 46 | 1, **2**, 3, 4, 5 |
| [ESP32](http://esp32.net/) | N/A (not supported) | **1** |
| [Sparkfun Pro Micro](https://www.sparkfun.com/products/12640) | 9, **5**, 5 | 1, **3**, 4_HS |
| [Teensy 1.0](https://www.pjrc.com/teensy/) | **17** | **1** |
| [Teensy 2.0](https://www.pjrc.com/teensy/) | 9, **10**, 14 | 1, 3, **4_HS** |
| [Teensy++ 1.0 / 2.0](https://www.pjrc.com/teensy/) | **1**, 16, 25 | 1, **2**, 3 |

View File

@@ -15,6 +15,8 @@
//
// JVC and Panasonic protocol added by Kristian Lauszus (Thanks to zenwheel and other people at the original blog post)
// Whynter A/C ARC-110WD added by Francesco Meschia
// Sparkfun Pro Micro support by Alastair McCormack
//******************************************************************************
#ifndef boarddefs_h
@@ -70,8 +72,14 @@
// switch IRremote to use a different timer.
//
// Sparkfun Pro Micro
#if defined(ARDUINO_AVR_PROMICRO)
//#define IR_USE_TIMER1 // tx = pin 9
#define IR_USE_TIMER3 // tx = pin 5
//#define IR_USE_TIMER4_HS // tx = pin 5
// Arduino Mega
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
//#define IR_USE_TIMER1 // tx = pin 11
#define IR_USE_TIMER2 // tx = pin 9
//#define IR_USE_TIMER3 // tx = pin 5
@@ -85,8 +93,8 @@
// Teensy 2.0
#elif defined(__AVR_ATmega32U4__)
//#define IR_USE_TIMER1 // tx = pin 14
#define IR_USE_TIMER3 // tx = pin 9
//#define IR_USE_TIMER4_HS // tx = pin 10
//#define IR_USE_TIMER3 // tx = pin 9
#define IR_USE_TIMER4_HS // tx = pin 10
// Teensy 3.0 / Teensy 3.1
#elif defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
@@ -246,19 +254,18 @@
# define TIMER_PWM_PIN CORE_OC1A_PIN // Teensy
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
# define TIMER_PWM_PIN 11 // Arduino Mega
#elif defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__)
# define TIMER_PWM_PIN 13 // MegaCore
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) \
|| defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) \
|| defined(__AVR_ATmega324P__) || defined(__AVR_ATmega324A__) \
|| defined(__AVR_ATmega324PA__) || defined(__AVR_ATmega164A__) \
|| defined(__AVR_ATmega164P__) || defined(__AVR_ATmega32__) \
|| defined(__AVR_ATmega16__) || defined(__AVR_ATmega8535__)
# define TIMER_PWM_PIN 13 // MightyCore
|| defined(__AVR_ATmega16__) || defined(__AVR_ATmega8535__) \
|| defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__)
# define TIMER_PWM_PIN 13 // MightyCore, MegaCore
#elif defined(__AVR_ATtiny84__)
# define TIMER_PWM_PIN 6
#else
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, etc
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, Sparkfun Pro Micro etc
#endif // ATmega48, ATmega88, ATmega168, ATmega328
//---------------------------------------------------------
@@ -291,8 +298,8 @@
//-----------------
#if defined(CORE_OC3A_PIN)
# define TIMER_PWM_PIN CORE_OC3A_PIN // Teensy
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
# define TIMER_PWM_PIN 5 // Arduino Mega
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(ARDUINO_AVR_PROMICRO)
# define TIMER_PWM_PIN 5 // Arduino Mega, Sparkfun Pro Micro
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)
# define TIMER_PWM_PIN 6 // MightyCore
#else
@@ -305,12 +312,21 @@
#elif defined(IR_USE_TIMER4_HS)
#define TIMER_RESET
#define TIMER_ENABLE_PWM (TCCR4A |= _BV(COM4A1))
#define TIMER_DISABLE_PWM (TCCR4A &= ~(_BV(COM4A1)))
#if defined(ARDUINO_AVR_PROMICRO) // Sparkfun Pro Micro
#define TIMER_ENABLE_PWM (TCCR4A |= _BV(COM4A0)) // Use complimentary O̅C̅4̅A̅ output on pin 5
#define TIMER_DISABLE_PWM (TCCR4A &= ~(_BV(COM4A0))) // (Pro Micro does not map PC7 (32/ICP3/CLK0/OC4A)
// of ATmega32U4 )
#else
#define TIMER_ENABLE_PWM (TCCR4A |= _BV(COM4A1))
#define TIMER_DISABLE_PWM (TCCR4A &= ~(_BV(COM4A1)))
#endif
#define TIMER_ENABLE_INTR (TIMSK4 = _BV(TOIE4))
#define TIMER_DISABLE_INTR (TIMSK4 = 0)
#define TIMER_INTR_NAME TIMER4_OVF_vect
#define TIMER_CONFIG_KHZ(val) ({ \
const uint16_t pwmval = SYSCLOCK / 2000 / (val); \
TCCR4A = (1<<PWM4A); \
@@ -339,6 +355,8 @@
//-----------------
#if defined(CORE_OC4A_PIN)
# define TIMER_PWM_PIN CORE_OC4A_PIN // Teensy
#elif defined(ARDUINO_AVR_PROMICRO)
# define TIMER_PWM_PIN 5 // Sparkfun Pro Micro
#elif defined(__AVR_ATmega32U4__)
# define TIMER_PWM_PIN 13 // Leonardo
#else

View File

@@ -1,9 +1,3 @@
## 3.0.0 - 2017/09/14
- Changed default send pin on ATmega32u4 from 13 to 9.
Note: this is a non-backwards compatible change as the behaviour of existing programs using this board for receiving WILL be affected. If you would like to use pin 13 as before then please search src/boarddefs.h for "32u4" and comment the line for pin 9 while uncommenting the line for pin 13
## 2.3.3 - 2017/03/31
- Added ESP32 IR receive support [PR #427](https://github.com/z3t0/Arduino-IRremote/pull/425)

View File

@@ -45,7 +45,7 @@ int toggle = 0; // The RC5/6 toggle state
// Most of this code is just logging
void storeCode(decode_results *results) {
codeType = results->decode_type;
int count = results->rawlen;
//int count = results->rawlen;
if (codeType == UNKNOWN) {
Serial.println("Received unknown code, saving as raw");
codeLen = results->rawlen - 1;

View File

@@ -61,7 +61,7 @@ void setup()
// Wait for the gap between tests, to synchronize with
// the sender.
// Specifically, wait for a signal followed by a gap of at last gap ms.
void waitForGap(int gap) {
void waitForGap(unsigned long gap) {
Serial.println("Waiting for gap");
while (1) {
while (digitalRead(RECV_PIN) == LOW) {
@@ -125,7 +125,7 @@ void dump(decode_results *results) {
// The motivation behind this method is that the sender and the receiver
// can do the same test calls, and the mode variable indicates whether
// to send or receive.
void test(char *label, int type, unsigned long value, int bits) {
void test(const char *label, int type, unsigned long value, int bits) {
if (mode == SENDER) {
Serial.println(label);
if (type == NEC) {
@@ -175,7 +175,7 @@ void test(char *label, int type, unsigned long value, int bits) {
// Test raw send or receive. This is similar to the test method,
// except it send/receives raw data.
void testRaw(char *label, unsigned int *rawbuf, int rawlen) {
void testRaw(const char *label, unsigned int *rawbuf, int rawlen) {
if (mode == SENDER) {
Serial.println(label);
irsend.sendRaw(rawbuf, rawlen, 38 /* kHz */);

View File

@@ -192,12 +192,12 @@ void loop()
ac_activate(AC_TEMPERATURE, AC_FLOW);
break;
case 2:
if ( b == 0 | b == 1 ) {
if ( b == 0 || b == 1 ) {
ac_change_air_swing(b);
}
break;
case 3: // 1 : clean on, power on
if ( b == 0 | b == 1 ) {
if ( b == 0 || b == 1 ) {
ac_air_clean(b);
}
break;

View File

@@ -1,10 +1,10 @@
#include "IRremote.h"
#include "IRremoteInt.h"
#ifdef IR_TIMER_USE_ESP32
hw_timer_t *timer;
void IRTimer(); // defined in IRremote.cpp
#endif
#ifdef IR_TIMER_USE_ESP32
hw_timer_t *timer;
void IRTimer(); // defined in IRremote.cpp
#endif
//+=============================================================================
// Decodes the received IR message
@@ -89,6 +89,11 @@ int IRrecv::decode (decode_results *results)
DBG_PRINTLN("Attempting Lego Power Functions");
if (decodeLegoPowerFunctions(results)) return true ;
#endif
#if DECODE_NERF_LOP
DBG_PRINTLN("Attempting Nerf Laser Ops Pro Functions");
if (decodeNerfLOP(results)) return true ;
#endif
// decodeHash returns a hash on any input.
// Thus, it needs to be last in the list.
@@ -122,17 +127,17 @@ IRrecv::IRrecv (int recvpin, int blinkpin)
//
void IRrecv::enableIRIn ( )
{
// Interrupt Service Routine - Fires every 50uS
#ifdef ESP32
// ESP32 has a proper API to setup timers, no weird chip macros needed
// simply call the readable API versions :)
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
timer = timerBegin(1, 80, 1);
timerAttachInterrupt(timer, &IRTimer, 1);
// every 50ns, autoreload = true
timerAlarmWrite(timer, 50, true);
timerAlarmEnable(timer);
#else
// Interrupt Service Routine - Fires every 50uS
#ifdef ESP32
// ESP32 has a proper API to setup timers, no weird chip macros needed
// simply call the readable API versions :)
// 3 timers, choose #1, 80 divider nanosecond precision, 1 to count up
timer = timerBegin(1, 80, 1);
timerAttachInterrupt(timer, &IRTimer, 1);
// every 50ns, autoreload = true
timerAlarmWrite(timer, 50, true);
timerAlarmEnable(timer);
#else
cli();
// Setup pulse clock timer interrupt
// Prescale /8 (16M/8 = 0.5 microseconds per tick)
@@ -146,7 +151,7 @@ void IRrecv::enableIRIn ( )
TIMER_RESET;
sei(); // enable interrupts
#endif
#endif
// Initialize state machine variables
irparams.rcvstate = STATE_IDLE;

89
ir_NerfLaserOpsPro.cpp Normal file
View File

@@ -0,0 +1,89 @@
#include "IRremote.h"
#include "IRremoteInt.h"
//==============================================================================
//
//
// NERF LASER OPS PRO
//
//
//==============================================================================
#define BITS 15 // The number of bits in the command
#define HDR_MARK 2800 // The length of the Header:Mark
#define HDR_SPACE 6000 // The lenght of the Header:Space
#define ONE_MARK 1800 // The length of a Bit:Mark for 1's
#define ZERO_MARK 800 // The length of a Bit:Mark for 0's
#define ALL_SPACE 2100 // The length of a Bit:Space
#define purpule 0x440
#define red 0x400
#define blue 0x420
//+=============================================================================
//
#if SEND_NERF_LOP
void IRsend::sendNerfLOP (unsigned long data, int nbits)
{
// Set IR carrier frequency
enableIROut(40);
// Header
mark (HDR_MARK);
space(HDR_SPACE);
mark (HDR_MARK);
// Data
for (unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
if (data & mask) {
space(ALL_SPACE);
mark (ONE_MARK);
} else {
space(ALL_SPACE);
mark (ZERO_MARK);
}
}
space(0); // Always end with the LED off
}
#endif
//+=============================================================================
//
#if DECODE_NERF_LOP
bool IRrecv::decodeNerfLOP (decode_results *results)
{
//NOT IMPLEMENTED YET
return false;
unsigned long data = 0; // Somewhere to build our code
int offset = 1; // Skip the Gap reading
// Check we have the right amount of data
if (irparams.rawlen != 1 + 2 + (2 * BITS) + 1) return false ;
// Check initial Mark+Space match
if (!MATCH_MARK (results->rawbuf[offset++], HDR_MARK )) return false ;
if (!MATCH_SPACE(results->rawbuf[offset++], HDR_SPACE)) return false ;
// Read the bits in
for (int i = 0; i < SHUZU_BITS; i++) {
// Each bit looks like: MARK + SPACE_1 -> 1
// or : MARK + SPACE_0 -> 0
if (!MATCH_MARK(results->rawbuf[offset++], BIT_MARK)) return false ;
// IR data is big-endian, so we shuffle it in from the right:
if (MATCH_SPACE(results->rawbuf[offset], ONE_SPACE)) data = (data << 1) | 1 ;
else if (MATCH_SPACE(results->rawbuf[offset], ZERO_SPACE)) data = (data << 1) | 0 ;
else return false ;
offset++;
}
// Success
results->bits = BITS;
results->value = data;
results->decode_type = SHUZU;
return true;
}
#endif

97
readmdFrench.md Normal file
View File

@@ -0,0 +1,97 @@
## IRremote Library
Cette bibliothèque vous permet d'envoyer et de recevoir des signaux infrarouges sur un Arduino.
Des tutoriels et plus d'informations seront disponibles sur la page d'accueil officielle.
## Version - 2.2.3
## Installation
1. Allez à la [Releases](https://github.com/z3t0/Arduino-IRremote/releases) page.
2. Téléchargez la dernière version.
3. Extraire le fichier zip
4. Déplacez le dossier "IRremote" vers vos bibliothèques.
5. Assurez-vous de supprimer Arduino_Root / libraries / RobotIRremote. Où Arduino_Root fait référence au répertoire d'installation d'Arduino. La bibliothèque RobotIRremote a des définitions similaires à IRremote et provoque des erreurs.
## FAQ
Je ne travaille pas correctement en utilisant Neopixels (aka WS2811 / WS2812 / WS2812B)
Que vous utilisiez la librairie Adafruit Neopixel ou FastLED, les interruptions sont désactivées sur de nombreux processeurs bas de gamme comme les arduinos de base. À son tour, cela empêche le gestionnaire IR de s'exécuter quand il le faut. Il y a quelques solutions à ce processus, voir cette page de Marc MERLIN
[cette page de Marc MERLIN](http://marc.merlins.org/perso/arduino/post_2017-04-03_Arduino-328P-Uno-Teensy3_1-ESP8266-ESP32-IR-and-Neopixels.html)
## Conseils pris en charge
- Teensy 1.0 / 1.0++ / 2.0 / 2++ / 3.0 / 3.1 / Teensy-LC; Crédits: @PaulStoffregen (Teensy Team)
- Sanguino
- ATmega8, 48, 88, 168, 328
- ATmega8535, 16, 32, 164, 324, 644, 1284,
- ATmega64, 128
- ATtiny 84 / 85
- ESP32 (recevoir seulement)
- ESP8266 est basé sur un ancien code qui n'est pas très récent, mais cela fonctionne raisonnablement bien. Voir https://github.com/markszabo/IRremoteESP8266
Sparkfun Pro Micro
Nous sommes ouverts aux suggestions d'ajout de support pour les nouveaux tableaux, cependant, nous vous recommandons fortement de contacter votre fournisseur et de fournir un soutien de leur côté.
## Spécifications matérielles
| Carte/CPU | Envoyer Pin | Compteurs |
|--------------------------------------------------------------------------|---------------------|-------------------|
| [ATtiny84](https://github.com/SpenceKonde/ATTinyCore) | **6** | **1** |
| [ATtiny85](https://github.com/SpenceKonde/ATTinyCore) | **1** | **TINY0** |
| [ATmega8](https://github.com/MCUdude/MiniCore) | **9** | **1** |
| Atmega32u4 | 5, 9, **13** | 1, 3, **4** |
| [ATmega48, ATmega88, ATmega168, ATmega328](https://github.com/MCUdude/MiniCore) | **3**, 9 | 1, **2** |
| [ATmega1284](https://github.com/MCUdude/MightyCore) | 13, 14, 6 | 1, **2**, 3 |
| [ATmega164, ATmega324, ATmega644](https://github.com/MCUdude/MightyCore) | 13, **14** | 1, **2** |
| [ATmega8535 ATmega16, ATmega32](https://github.com/MCUdude/MightyCore) | **13** | **1** |
| [ATmega64, ATmega128](https://github.com/MCUdude/MegaCore) | **13** | **1** |
| ATmega1280, ATmega2560 | 5, 6, **9**, 11, 46 | 1, **2**, 3, 4, 5 |
| [ESP32](http://esp32.net/) | N/A (insupporté) | **1** |
| [Sparkfun Pro Micro](https://www.sparkfun.com/products/12640) | 9, **5**, 5 | 1, **3**, 4_HS |
| [Teensy 1.0](https://www.pjrc.com/teensy/) | **17** | **1** |
| [Teensy 2.0](https://www.pjrc.com/teensy/) | 9, **10**, 14 | 1, 3, **4_HS** |
| [Teensy++ 1.0 / 2.0](https://www.pjrc.com/teensy/) | **1**, 16, 25 | 1, **2**, 3 |
| [Teensy 3.0 / 3.1](https://www.pjrc.com/teensy/) | **5** | **CMT** |
| [Teensy-LC](https://www.pjrc.com/teensy/) | **16** | **TPM1** |
## Patchs expérimentaux
Voici les correctifs strictement pris en charge qui n'ont pas encore été intégrés. Si vous avez des questions, n'hésitez pas à demander ici. Si cela fonctionne, faites le nous savoir!
[Arduino 101](https://github.com/z3t0/Arduino-IRremote/pull/481#issuecomment-311243146)
Le tableau ci-dessus répertorie les temporisations actuellement supportées et les broches d'envoi correspondantes, beaucoup de ces broches supplémentaires sont ouvertes.
## Utilisation
- À faire TODO (Vérifier les exemples pour l'instant)
## Contribution
Si vous voulez contribuer à ce projet:
- Signaler les bogues et les erreurs
- Demander des améliorations
- Créer des problèmes et tirer des requêtes
- Parlez de cette bibliothèque à d'autres personnes
- Contribuer de nouveaux protocoles
Vérifiez ici [ici](Contributing.md) pour quelques guidelines
## Contact
Email: zetoslab@gmail.com
Please only email me if it is more appropriate than creating an Issue / PR. I **will** not respond to requests for adding support for particular boards, unless of course you are the creator of the board and would like to cooperate on the project. I will also **ignore** any emails asking me to tell you how to implement your ideas. However, if you have a private inquiry that you would only apply to you and you would prefer it to be via email, by all means.
## Contributeurs
Check [here](Contributors.md)
@Lsuperman735 French translation
## Copyright
Copyright 2009-2012 Ken Shirriff