306 Commits

Author SHA1 Message Date
Rafi Khan
71f6daca4f Revert "Merge pull request #519 from PaulStoffregen/master"
This reverts commit 20a4d97f61, reversing
changes made to 47aadf559d.
2017-09-14 22:13:50 -04:00
Rafi Khan
2b3188e40a Merge branch 'master' of https://github.com/z3t0/Arduino-IRremote 2017-09-14 21:57:46 -04:00
Rafi Khan
d719c27f95 Changed default send pin on ATmega32u4 from 13 to 9
The reason for this change is that I was informed by a community
member that the Pro Micro board does not have the default pin 13. This
causes many issues for beginners that are not familiar with the inner
workings of the library. However, I am concerned about this being a
breaking change. If there are serious issues I may just end up adding
a tutorial in the FAQ for beginners, informing them how they may
change the default pins.
2017-09-14 21:57:01 -04:00
Rafi Khan
20a4d97f61 Merge pull request #519 from PaulStoffregen/master
Fix minor compiler warnings in examples
2017-09-09 17:53:45 -06:00
PaulStoffregen
1154607b69 Fix minor compiler warnings in examples 2017-09-04 20:48:37 -07:00
Rafi Khan
47aadf559d Update Contributors.md (#488) 2017-07-24 14:51:03 -06:00
Rafi Khan
eb7a0bee7d #481 note (#484) 2017-07-01 21:53:37 -07:00
Marc MERLIN
18f12d3aff 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
f0aa48a4d1 Merge pull request #436 from marcmerlin/patch-1
Added pointer for ESP8266 fork
2017-04-10 14:05:36 -06:00
Marc MERLIN
691ea5bc53 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
e0c2649b9f 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
419c948c29 Fixed rev to 2.3.3 and added info on timer used. 2017-04-01 08:32:37 -07:00
Marc MERLIN
9133814e60 Rev'ed to 2.2.4. 2017-03-31 23:10:07 -07:00
Marc MERLIN
3875097df9 Merge branch 'master' of github.com:marcmerlin/Arduino-IRremote 2017-03-31 22:33:16 -07:00
Marc MERLIN
88b294a0cd change no-op defines from '1' to ''. 2017-03-31 22:32:48 -07:00
Marc MERLIN
ffdb6081ae Merge branch 'master' into master 2017-03-31 22:04:36 -07:00
Marc MERLIN
6b8f2bdbfc move comment about 'or else' chips that use TIMER2. 2017-03-31 22:01:31 -07:00
Marc MERLIN
eae9de4307 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
513e104515 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
ccc9d0135c Add Lego fix to change and bump version up to 2.2.3 2017-03-27 19:57:25 +02:00
Philipp Henkel
257a15130f 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
1b56da6cc7 Rename ESP32 timer name so that it doesn't conflict with other timers. 2017-03-19 21:28:14 -07:00
Marc MERLIN
aa8f7b31fe 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
048efb23a2 Merge pull request #414 from z3t0/z3t0-patch-1
Update ISSUE_TEMPLATE.md
2017-02-06 22:26:51 -06:00
Rafi Khan
4f24b696cf Update ISSUE_TEMPLATE.md 2017-02-03 21:18:47 -06:00
Rafi Khan
a4cf8bc43e Merge pull request #406 from z3t0/panasonic-jvc
IRrecord.ino typo
2017-01-26 21:11:10 -06:00
Rafi Khan
3b41130ff9 Manual merge of #398 2017-01-22 01:52:14 -06:00
Rafi Khan
96efb5930a Merge pull request #402 from felipenoris/fn/fix-msg
fix example error message
2017-01-14 14:14:16 -06:00
Felipe Noronha
9a74475c8d fix example error message 2017-01-13 11:58:40 -02:00
Rafi Khan
7c14514beb 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
20b6e3b8a2 Just gonna put this in here.... 2016-11-11 22:28:41 -06:00
Rafi Khan
fe27a84d26 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
ccbaca5acc Merge branch 'boarddefs' of github.com:bengtmartensson/Arduino-IRremote into boarddefs 2016-11-07 17:04:41 +01:00
Bengt Martensson
74594847b7 Move board specific configuration info to new file boarddefs.h. 2016-11-07 17:02:34 +01:00
Rafi Khan
85f8aa1e25 Merge pull request #367 from z3t0/z3t0-patch-2
updated readme email notice
2016-10-26 22:05:22 -06:00
Rafi Khan
9ae0239fb7 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
0d69a1a9ed Move board specific configuration info to new file boarddefs.h. 2016-08-23 15:23:51 +02:00
Rafi Khan
05cc3e683c Merge pull request #350 from safaorhan/master
Update keywords.txt to add sendLG
2016-08-19 23:31:39 -06:00
safaorhan
c0dda82685 Update keywords.txt
Add sendLG as KEYWORD2
2016-08-18 12:20:43 +03:00
Rafi Khan
0d398731b2 Merge pull request #343 from PaulStoffregen/master
Minor fixes for Teensy 3.x
2016-08-01 12:24:32 -06:00
PaulStoffregen
e72008adf6 Allow any clock >= 8 MHz on Teensy 3.x 2016-08-01 07:08:17 -07:00
PaulStoffregen
2d1b0f4737 Fix errors on Teensy 3.x 2016-08-01 06:55:56 -07:00
Rafi Khan
bb0323bd7c Merge pull request #336 from henkel/lego_pf_tests
Add Lego Power Functions tests
2016-07-26 23:31:43 -06:00
Philipp Henkel
b26b64f871 Update changelog and version info 2016-07-27 07:25:52 +02:00
Philipp Henkel
13df9e5632 Merge remote-tracking branch 'origin/lego_pf_tests' into lego_pf_tests 2016-07-26 22:28:06 +02:00
Philipp Henkel
a9385b92d8 Add Lego Power Functions tests 2016-07-26 22:27:33 +02:00
Rafi Khan
5bd251fa22 Merge pull request #340 from hmeine/master
Misleading link to "tutorials and more information"
2016-07-25 08:40:28 -06:00
Hans Meine
8a767328df rephrase sentence linking to (to-do) tutorials 2016-07-25 12:46:23 +02:00
Rafi Khan
1a05ac08a5 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
b27398de74 Update README.md 2016-07-22 19:31:14 +02:00
Hans
76e23159f2 Added myself! 2016-07-15 22:30:02 +02:00
Hans
75960b95f6 Added ATmega48 and ATmega88 2016-07-15 22:27:57 +02:00
Hans
9bf00849b3 Added ATmega48 and ATmega88 2016-07-15 22:25:01 +02:00
Hans
ec5a82bd93 Added ATmega48 and ATmega88 2016-07-15 22:20:53 +02:00
Philipp Henkel
d28b6f985c Add Lego Power Functions tests 2016-07-12 23:14:47 +02:00
Rafi Khan
2343bee2fa 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
e5dc3e108e Added Leonardo to hardware table #224 #281 2016-07-10 23:42:23 -05:00
Rafi Khan
de3d723574 Merge pull request #325 from z3t0/dev
Merging 2.2.0 into master
2016-06-28 01:17:50 -06:00
Rafi Khan
978284d55f slightly modified travis - TODO support more boards 2016-06-28 01:10:24 -06:00
Rafi Khan
e6b839c34f 2.2.0 2016-06-28 00:59:31 -06:00
Rafi Khan
bb1470a029 added changelog 2016-06-28 00:59:20 -06:00
Hans
f9a41c99c8 There's no such thing as an ATmega8P 2016-06-26 12:04:52 +02:00
Hans
bc15ded405 Added more microcontrollers to the list 2016-06-26 12:02:25 +02:00
Hans
38c1e017a2 Added more microcontrollers 2016-06-26 11:43:22 +02:00
Hans
d5658f4488 Update IRremoteInt.h 2016-06-26 11:33:46 +02:00
Hans
e7e5465b74 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
44f801d55c 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
92c7f00138 Update changelog and contributors 2016-05-04 22:08:52 +02:00
Philipp Henkel
d0f1d0d33d Add supported device LEGO® Power Functions IR Receiver 8884 2016-04-27 23:51:56 +02:00
Philipp Henkel
34e5cd87ca Add Lego Power Functions send protocol 2016-04-27 21:57:57 +02:00
Rafi Khan
d064c7dd5b 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
33c2e36033 Merge branch 'master' into patch-4 2016-03-28 13:54:26 +03:00
Rafi Khan
b8ef1c3e92 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
f04b014da5 Cache PlatformIO packages using Travis CI container-based infrastructure 2016-03-27 18:43:02 +03:00
Ivan Kravets
fa2f5f9352 Use tagged/versioned source code from repo 2016-03-27 18:40:13 +03:00
Rafi Khan
864ed3ad4d Merge pull request #303 from AnalysIR/master
Fixed bug in ir_Dish.cpp for sending
2016-03-26 22:59:22 -06:00
AnalysIR
fc96667673 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
7d30c2ff78 Merge pull request #3 from z3t0/master
syncing with latest master
2016-03-26 14:14:33 +00:00
Rafi Khan
ebbefa835f Merge pull request #301 from z3t0/z3t0-patch-1
fix syntax
2016-03-24 17:57:42 -06:00
Rafi Khan
fba0ee0ae5 fix syntax 2016-03-23 01:06:24 -06:00
Rafi Khan
0221081f25 Merge pull request #300 from z3t0/z3t0-patch-1
added authors
2016-03-22 23:16:07 -06:00
Rafi Khan
cf7b49389c added authors
feel free to add your self
2016-03-22 23:09:07 -06:00
Rafi Khan
3aebf42ca8 typo 2016-02-21 01:03:15 -06:00
Rafi Khan
0486c4f25a change travis link 2016-02-21 00:50:49 -06:00
Rafi Khan
25de5b79d6 Merge pull request #278 from z3t0/dev
Merge dev into master
2016-02-21 00:50:13 -06:00
Rafi Khan
17628525af added ISSUE_TEMPLATE 2016-02-21 00:48:41 -06:00
Rafi Khan
cb01593db0 Contributing.md
added hardware specs table
2016-02-21 00:41:34 -06:00
Rafi Khan
9e2c41230c added contribution guidelines 2016-02-21 00:13:00 -06:00
Rafi Khan
3bdc6a65a6 added support boards section in the readme 2016-02-21 00:03:44 -06:00
Rafi Khan
841e77a642 changed travis link for dev branch 2016-02-20 23:47:27 -06:00
Rafi Khan
bd1a2e05a0 @2.1.0 #258 (updated changelog) 2016-02-20 23:46:02 -06:00
Rafi Khan
3a906217d2 Merge branch 'ElectricRCAircraftGuy-patch-1' into dev
merging #258
2016-02-20 23:41:18 -06:00
Rafi Khan
9697752f4e 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
c471e2816d @2.0.4 #54 (added changelog info) 2016-02-20 23:37:11 -06:00
Rafi Khan
ec356c951b Merge branch 'lumbric-master' into dev
merging #54
2016-02-20 23:34:01 -06:00
Rafi Khan
1c3275f228 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
376301228a changed irsendraw parameter to const, #227 2016-02-20 23:17:45 -06:00
Rafi Khan
96c40f63f0 added sublime workspace to gitignore 2016-02-20 23:17:07 -06:00
Rafi Khan
86e20db36c added sublime project file to gitignore 2016-02-20 23:02:55 -06:00
Gabriel Staples
e4933e809e Update IRremote.cpp
very minor changes
2016-01-23 21:12:34 -05:00
Gabriel Staples
92092df7a0 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
ed1a2a2153 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
e3ec11d696 Merge PR #241 Merge branch 'AnalysIR-master' 2015-12-02 23:57:22 +00:00
Rafi Khan
8bde9ee628 merging #241 2015-12-02 23:57:00 +00:00
AnalysIR
711ebd7d92 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
a9706375c0 Merge pull request #2 from z3t0/master
Update from Original
2015-11-28 14:01:01 +00:00
Rafi Khan
e1957629d3 Update ir_Aiwa.cpp
fixed typo in line 12
2015-11-10 15:02:32 -06:00
Rafi Khan
9293d2fcba Merge pull request #233 from ram-0000/patch-1
Update ir_Aiwa.cpp
2015-11-10 15:01:45 -06:00
ram-0000
c41f506cc1 Update ir_Aiwa.cpp
Remove unused mask variable line 31
2015-11-08 19:38:54 +01:00
Rafi Khan
3c4fc7bf37 Merge pull request #223 from PaoloP74/master
Update version to 2.0.1
2015-09-28 20:46:21 -06:00
Rafi Khan
26560e5755 Contact info @readme.md 2015-09-28 20:45:55 -06:00
Paolo Paolucci
d7a4c4e0c8 Update version to 2.0.1 2015-09-25 09:23:22 +02:00
Paolo Paolucci
9a57b2aead Errata corrige keyword file 2015-09-25 09:22:25 +02:00
Paolo P
c90d6788a1 Update version to 2.0.1
Update to version 2.0.1
2015-09-24 11:43:33 +02:00
Rafi Khan
2da6aeaf27 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
2fd83bbb00 Merge pull request #219 from bessl/master
Changed library name "RobotIRremote"
2015-09-09 09:00:35 -06:00
Bernhard Essl
702a064251 Merge pull request #1 from bessl/bessl-patch-1
Changed library name "RobotIRremote"
2015-09-09 10:49:16 +02:00
Bernhard Essl
f5071daac8 Changed library name "RobotIRremote" 2015-09-09 10:47:28 +02:00
Andrea Odetti
5b82539954 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
55f3e27866 Merge pull request #213 from AnalysIR/master
Update IRrecvDumpV2.ino
2015-08-28 16:43:43 -06:00
AnalysIR
f985c4b318 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
cdd783ce7e Merge pull request #212 from chaeplin/master
LG_AC : heating option
2015-08-27 13:28:25 -06:00
chaeplin
a237a0e393 typo 86 / 30 2015-08-28 04:15:04 +09:00
chaeplin
27777e89b2 decoding for LG A/C 2015-08-28 04:02:47 +09:00
chaeplin
0ef30ed227 Fahrenheit 2015-08-28 03:36:26 +09:00
chaeplin
d87707d0ec add heating 2015-08-27 21:09:30 +09:00
chaeplin
d8bdbb1a44 typo 2015-08-27 21:04:34 +09:00
chaeplin
3fcb071d36 heating 2015-08-27 21:01:26 +09:00
chaeplin
b4c8e6b22c Revert "Revert "heating""
This reverts commit e6bcf89664.
2015-08-27 20:58:38 +09:00
chaeplin
e6bcf89664 Revert "heating"
This reverts commit df34396969.
2015-08-27 20:58:00 +09:00
chaeplin
df34396969 heating 2015-08-27 20:55:40 +09:00
Rafi Khan
bce86bf8ed corrected a typo 2015-08-26 16:16:26 -06:00
Rafi Khan
0bf5993a5b Update README.md 2015-08-26 16:14:26 -06:00
Rafi Khan
77fd51e891 Merge pull request #203 from chaeplin/LG_AC
adding SEND_LG
2015-08-26 16:10:11 -06:00
Rafi Khan
22e64f144c Merge pull request #207 from AnalysIR/master
Bug fixes as per Issue #167
2015-08-26 16:09:32 -06:00
AnalysIR
61f00b8dc5 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
bd72084b7f 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
cd02daf27c Merge pull request #206 from AnalysIR/master
Create IRsendRawDemo
2015-08-24 15:06:30 -06:00
AnalysIR
339a7969c9 Delete IRsendRawDemo.ino
moved to own folder to maintain consistency with other examples
2015-08-24 21:26:08 +01:00
AnalysIR
0abc9f0908 Create IRsendRawDemo.ino
New example should go into new fordel of same name...sorry
2015-08-24 21:25:22 +01:00
AnalysIR
61d0263c5b Rename IRsendRawDemo to IRsendRawDemo.ino
forgot to put .ino extension on file.

now corrected
2015-08-24 21:21:46 +01:00
AnalysIR
e9d43f7751 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
79d951896d Merge pull request #205 from AnalysIR/master
Update IRsendDemo.ino
2015-08-24 13:55:45 -06:00
AnalysIR
d433744ec7 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
ec371483ac adding SEND_LG 2015-08-22 19:06:22 +09:00
Rafi Khan
072ab7f048 Merge pull request #202 from AnalysIR/master
change int to unsigned int in IRrecvDumpV2
2015-08-20 10:19:26 -06:00
AnalysIR
f83fe2b70f 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
1fd88cd308 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
028cc2e649 Merge pull request #201 from AnalysIR/master
Updates to IRremote.h, irSend.cpp. by @AnalysIR
2015-08-19 17:07:35 -06:00
AnalysIR
9b21a7fdbd 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
f1dc505249 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
1e72064557 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
24d20e3231 Merge pull request #198 from pcoughlin/master
update custom_delay function
2015-08-15 14:04:34 -06:00
Paul Coughlin
7aee7fcf89 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
11cb3fe442 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
c058f3f336 solves #195 2015-08-12 14:16:51 -06:00
Rafi Khan
879b06b1c4 Removed a windows encoding line in irISR.cpp, #192 2015-08-11 00:17:55 -06:00
Rafi Khan
cd9fb53520 Fixed README links. 2015-08-10 14:41:13 -06:00
Rafi Khan
5c920bd31d wrapped getRCLevel function with #if DECODE_RC5/6 2015-08-10 14:33:35 -06:00
Rafi Khan
c9e8ab555e changed ifdef to if in IRRecv 2015-08-10 14:31:27 -06:00
Rafi Khan
a1a4538200 fixed previous commit 2015-08-10 14:12:03 -06:00
Rafi Khan
2efeef446e Working on sendRaw Bug 2015-08-10 13:53:56 -06:00
Rafi Khan
f1e1fd0a59 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
114fe2ccd6 Added suport for user defined IR reception feedback LED 2015-07-31 20:58:04 +02:00
Rafi Khan
295cdf2e15 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
6a10861a44 Update IRsendDemo.ino 2015-07-30 11:43:59 -06:00
Ivan Kravets
b6c04cde1a Update Travis CI badge with @z3t0 account 2015-07-30 19:24:12 +03:00
Rafi Khan
197ff26f68 Update Contributors.md 2015-07-30 00:14:55 -06:00
Rafi Khan
e794c747db Travis CI workingvim README.md ! added the badge 2015-07-30 00:03:15 -06:00
Rafi Khan
86a1e93b23 dummy commit to test travis ci 2015-07-30 00:01:37 -06:00
Rafi Khan
9fe9551705 Removed Travis Badge, will add when Travis is working 2015-07-26 23:03:39 -06:00
Rafi Khan
b473429939 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
0c298aaf39 Updated changelog 2015-07-26 22:38:20 -06:00
Rafi Khan
29826d01f4 Added pin comment for ATtiny84 2015-07-26 22:37:56 -06:00
Rafi Khan
e23aa5eb32 Updating Changelog - test 1 2015-07-26 22:13:24 -06:00
Rafi Khan
3cc9956f97 #176 2015-07-24 16:36:09 -06:00
Rafi Khan
107b8c249c 1e519b1bf 2015-07-24 16:35:28 -06:00
Rafi Khan
1e519b1bf3 added isIdle Method for receiving, #48 2015-07-23 19:39:46 -06:00
Rafi Khan
dcd06fa0ef Add support for ATtiny85 2015-07-23 19:12:23 -06:00
Rafi Khan
ee1b44de3f Add support for ATtiny84 2015-07-23 19:04:22 -06:00
Rafi Khan
2280c963a7 testing travis 2015-07-16 19:47:11 -06:00
Rafi Khan
b79c04f11c Merge branch 'ivankravets-master' into experimental
Conflicts:
	README.md
2015-07-16 19:41:40 -06:00
Rafi Khan
df6f2003ef Merge branch 'master' of git://github.com/ivankravets/Arduino-IRremote into ivankravets-master 2015-07-16 18:59:10 -06:00
Rafi Khan
1e85b4a058 Experimental Release 2015-07-11 15:43:18 -06:00
Rafi Khan
555a600acc Added pin variable in IRrecvDumpV2 2015-07-11 15:22:18 -06:00
Rafi Khan
2e4538bac8 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
360ca6ffb9 Add Teensy LC Support, confirmed working @48Mhz with RecvDemo 2015-07-08 16:22:50 -06:00
Rafi Khan
503225635e 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
ec5e1bd5f9 Fix coding error in send loops (specify bit size of literal) 2015-07-01 20:06:51 +01:00
Rafi Khan
0cacdf1ccb added changelog 2015-06-26 12:25:39 -06:00
Rafi Khan
23fa23ada2 Merge branch 'master' of https://github.com/csBlueChip/Arduino-IRremote into experimental 2015-06-26 11:41:58 -06:00
Rafi Khan
4429c773ce 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
5d5479adbd Added Gitter badge 2015-06-25 22:59:19 +00:00
Bluechip
4e5608f25f 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
845e912e9f Fixup test harness & frequency calculator in Pronto code 2015-06-21 18:34:40 +01:00
Bluechip
2e163ae3f4 Additional comments in Denon code 2015-06-21 18:33:47 +01:00
Bluechip
3dec997391 Added sendPronto() 2015-06-21 18:13:21 +01:00
Bluechip
6a1222d180 Started work on supporting Pronto Codes 2015-06-21 03:11:24 +01:00
Bluechip
78e9b87a34 Add Denon support
Improve comments
Fixup DECODE_AIWA_RC_T50
Simplify template
2015-06-21 01:20:44 +01:00
Bluechip
593e0a3ee3 Improve documentation and fixup IRrecvDumpV2.ino 2015-06-20 22:08:13 +01:00
Bluechip
ae477413de Fixup old examples
Add new example
2015-06-20 22:03:00 +01:00
Bluechip
07df68af9d correct typo 2015-06-20 21:09:44 +01:00
Bluechip
05e688a961 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
aa32e8f048 Removed explicit values in enumeration 2015-06-20 21:07:40 +01:00
Bluechip
eb0360e758 More cleanup and a few minor optimisations 2015-06-20 20:27:59 +01:00
Bluechip
66dee2fa16 ISR Commenting 2015-06-20 18:33:00 +01:00
Bluechip
5e7a1c1f12 Abbreviated (Panasonic) address handling 2015-06-20 18:27:10 +01:00
Bluechip
8afb3e73a6 Introduced overflow detection code to the ISR State Machine 2015-06-20 18:26:23 +01:00
Bluechip
dfd14d437c Increased RAWLEN to 101 to stop Panasonic codes overflowing 2015-06-20 18:24:50 +01:00
Bluechip
5d994880b9 Commenting formatting
move ISR macros to ISR header
2015-06-20 17:54:18 +01:00
Bluechip
7b8444a305 Remove use of macro TOPBIT 2015-06-20 17:51:40 +01:00
Bluechip
813a3038ab Commenting 2015-06-20 17:51:10 +01:00
Bluechip
a1cf782c44 Bit more code cleanup 2015-06-20 14:42:59 +01:00
Bluechip
88e243fe06 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
04e2cfbdad Compiling, all functionality enabled, tested with Panasonic 2015-06-20 01:20:25 +01:00
Bluechip
5f92834a12 Finish sendXXX() cleanup
Move NEC decode to be with NEC send
2015-06-19 00:12:29 +01:00
Bluechip
a338d5525a Bit more cleanup
Guests have arrived - sanity checkin
2015-06-18 19:52:22 +01:00
Bluechip
001ccf9425 Optimise send() loops
Query accuracy of sendAiwaRCT501() [see inline comment]
2015-06-18 19:24:21 +01:00
Bluechip
6af9a1b485 Whitespace cleanup on for() loops 2015-06-17 23:12:32 +01:00
Bluechip
7d926499b4 Cleaned up the DEBUG output 2015-06-17 23:04:47 +01:00
Bluechip
7f1387278f Reduce one-line-if's down to one line 2015-06-17 22:54:43 +01:00
Bluechip
c45b84f65c Standardise function headers for consistent coding style 2015-06-17 22:25:34 +01:00
Bluechip
64698fd24b Standardise commenting as C++ style throughout 2015-06-17 22:16:43 +01:00
Bluechip
942dcf4051 Clearly mark the start of every function to aid is source navigation & code maintainability 2015-06-17 21:59:04 +01:00
Ivan Kravets
66395a5daa Switch to stable release of @PlatformIO 2015-05-27 17:18:01 +03:00
Ivan Kravets
8e043b5bb4 Continuous Integration with @travis-ci + @PlatformIO 2015-05-23 19:35:45 +03:00
Rafi Khan
9170c0b4a1 Update README.md 2015-05-14 16:32:48 -06:00
Rafi Khan
f9faf98048 #133 2015-04-26 17:06:52 -06:00
Rafi Khan
5cf1e45002 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
0cb77d3c5b 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
d336bc541a 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
675f9fe042 Library properties for arduino 1.0.5 to recognize as library. 2015-04-06 17:16:27 +02:00
jan-r
4caca675ff 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
96fa0f557a Quick fix for previous commit 2015-03-16 12:07:55 -06:00
Rafi Khan
04420c9f5c Add Aiwa protocol to keywords 2015-03-16 12:07:21 -06:00
joshua noble
66d82da532 Updating for device usage 2015-03-15 19:41:46 -07:00
Joshua Noble
117059a17f merging 110 2015-03-15 13:28:46 -07:00
Rafi Khan
ce1c79baa5 Merge pull request #61 from crash7/master
Added Aiwa protocol (remote control RC-T501).
2015-03-14 21:04:30 -06:00
sstefanov
549d92d2f5 Added possibility to exclude non-necessary libraries by comment lines in IRremote.h 2015-03-12 14:49:48 +02:00
Rafi Khan
c2bf981fe7 Update Contributors.md 2015-03-10 15:43:28 -06:00
Rafi Khan
2ad1487c8d Added Lauszus to contrib. 2015-03-10 15:43:13 -06:00
Rafi Khan
c1c6bd4199 Added reference to GitHub page 2015-03-09 18:54:25 -06:00
Rafi Khan
2768ddc676 Releases can be found on the releases page. 2015-03-09 13:01:25 -06:00
Rafi Khan
7b08532e47 Moved contributors to a different file 2015-03-08 19:42:47 -06:00
Rafi Khan
3b16c12b59 Added Neco777 to contributors 2015-03-08 19:40:16 -06:00
Rafi Khan
9c2064c5b4 add crash7 to contributors list 2015-03-08 17:38:20 -06:00
Rafi Khan
3256c847b2 remove index (for real) 2015-03-08 17:37:06 -06:00
Rafi Khan
2c6067eb30 Merge branch 'master' of https://github.com/shirriff/Arduino-IRremote 2015-03-08 17:35:45 -06:00
Rafi Khan
c35f7219dd removed index 2015-03-08 17:35:21 -06:00
Rafi Khan
18f5aa639b Added GitHub Page 2015-03-08 17:30:36 -06:00
Rafi Khan
a87d558b73 Merge pull request #90 from ivankravets/patch-1
PlatformIO Library Manager manifest file
2015-03-08 17:16:29 -06:00
Christian Musa
bed4cc5c97 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
c0446fd659 Fixed broken links 2015-03-08 16:07:40 -06:00
Rafi Khan
12f7ef1d28 Add contributors to readme 2015-03-08 16:03:41 -06:00
Rafi Khan
9235051c6a Readme is branch independent 2015-03-07 23:33:59 -06:00
Rafi Khan
4610e7eb0e NEC_ONE_SPACE should actually be 1690 2015-03-07 18:10:22 -06:00
Rafi Khan
13f207d863 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
7c67cc5c59 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
4fed49fca6 Fixed typo 2015-03-07 17:24:50 -06:00
Rafi Khan
9d94115974 Revamped README 2015-03-07 17:22:29 -06:00
Rafi Khan
b3e3ced302 Fix #41
Fixes #41 by implementing the solution by @canondale
2015-03-07 16:53:43 -06:00
Francesco Meschia
0fce321c94 Added Whynter A/C remote protocol
Tested with Whynter ARC-110WD
2015-02-06 21:29:56 -08:00
Colton Schlosser
02f206e19c Add LG keyword 2015-01-10 14:17:43 -06:00
joshua noble
a881523044 Merge pull request #22 from PaulStoffregen/master
Teensy 3.0 compatibility
2014-11-16 07:20:33 -08:00
Ivan Kravets
a3cdf402d7 Avoid trademark issues with library name
Added frameworks and platforms fields
2014-10-20 11:41:09 +03:00
Ivan Kravets
e947f0924e 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
f2dafe5030 Merge pull request #84 from Informatic/sendsharp
sendSharp cleanup and API change
2014-09-21 20:52:40 -07:00
Piotr Dobrowolski
b04b31232f Update keywords.txt 2014-09-17 23:21:54 +02:00
Piotr Dobrowolski
5719e7c00f sendSharp API change to make it compatible with decodeSharp 2014-09-17 22:34:41 +02:00
Piotr Dobrowolski
95f93e639e Cleanup sendSharp and fix reliability 2014-09-17 22:33:14 +02:00
joshua noble
24ba950f5c 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
18591b037c 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
6c7e2e0f72 Merge pull request #69 from vk2tds/master
LG A/C remote protocol decoding
2014-07-10 09:30:01 -07:00
Darryl Smith
66c3b1f47c Updates for LG Air Conditioner Remote 2014-07-10 08:27:36 +10:00
vk2tds
0af9c5a9e9 Update IRremoteInt.h 2014-07-07 08:27:15 +10:00
joshua noble
3c89676bab Merge pull request #62 from sstefanov/master
Added Samsung protocol
2014-06-23 08:42:25 -07:00
joshua noble
fba55fb843 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
0de2d18bdb Added Samsung protocol 2014-05-23 12:20:39 +03:00
lumbric (antares)
1c57c6a9b0 adding Panasonic and JVC types for IRrecord 2014-02-20 21:35:50 +01:00
joshua noble
46b4e1084e Merge pull request #34 from joshuajnoble/master
adding Attiny84 for Arduino Tiny
2013-07-23 16:51:07 -07:00
Joshua Noble
e22a691164 updating timer interrupt name for Attiny84 2013-07-23 16:50:20 -07:00
Joshua Noble
a6bf23d71d adding Attiny84 2013-07-18 11:21:21 -07:00
Xun Yang
acc1b6b86e 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
9ba6628f04 Add support for Teensy 3.0 2013-01-20 06:48:13 -08:00
Ken Shirriff
3f70ad2e4c Merge pull request #13 from TKJElectronics/master
Added support for Arduino Leonardo
2012-08-13 23:18:25 -07:00
Kristian Lauszus
107fa6cf4d Added support for Leonardo 2012-08-14 01:24:14 +02:00
Ken Shirriff
9dae9393f3 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
e03a593847 mitra changes
Conflicts:
	IRremote.cpp
	IRremote.h
	IRremoteInt.h
	keywords.txt
2012-08-06 23:43:43 -07:00
Ken Shirriff
072b2c3db6 Merge branch 'master' of https://github.com/sEpt0r/Arduino-IRremote
Conflicts:
	IRremoteInt.h
2012-08-05 23:46:35 -07:00
Ken Shirriff
b25accfdd1 Merge pull request #11 from fpo/patch-1
Timer2 disable interrupt
2012-06-05 23:00:56 -07:00
Ken Shirriff
ade7cb6c29 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
11a43ec5b6 i think that's the correct way. 2012-06-03 13:48:42 +03:00
Kristian Lauszus
937ce48832 Added support for ATmega2560 2012-03-21 21:31:41 +01:00
Kristian Lauszus
c48f817593 Set panasonic carrier frequency to 35 kHz 2012-03-20 22:21:16 +01:00
Vasiliy Marnopolskiy
a2af9e32a6 Support board with Atmega8 2012-02-14 00:56:34 +04:00
Kristian Lauszus
96eedde481 Added keywords 2012-02-08 18:15:48 +01:00
Kristian Lauszus
753e52efe7 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
fb741e9893 Add wiki link 2011-05-05 22:28:58 -07:00
Ken
4131d5bbb6 Merge branch 'master' of https://github.com/toddtreece/Arduino-IRremote into toddtreece-master 2010-12-09 22:49:55 -08:00
Todd Treece
ccb4ac32c2 updated website info in documentation for sharp and dish support 2010-12-08 18:18:37 -05:00
Ken
2eb19be290 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
0fc224a81e Update readme. 2010-11-15 22:36:42 -08:00
Ken
114d8afe67 Add Test2.
This tests functionality using a pair of Arduinos.
2010-11-15 22:05:16 -08:00
Todd Treece
9bc832ec55 Updated Sharp protocol documentation 2010-09-20 15:35:29 -04:00
Ken Shirriff
31d80abc3f 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
da2a0d8f9d Add information on downloading from github. 2010-03-20 23:56:27 -07:00
10 changed files with 42 additions and 259 deletions

View File

@@ -79,9 +79,6 @@
#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
@@ -122,7 +119,6 @@ typedef
DENON,
PRONTO,
LEGO_PF,
NERF_LOP,
}
decode_type_t;
@@ -255,10 +251,6 @@ class IRrecv
# if DECODE_LEGO_PF
bool decodeLegoPowerFunctions (decode_results *results) ;
# endif
//......................................................................
# if DECODE_NERF_LOP
bool decodeNerfLOP (decode_results *results) ;
# endif
} ;
//------------------------------------------------------------------------------
@@ -347,10 +339,6 @@ 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,7 +33,6 @@ 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.
@@ -44,7 +43,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** |
@@ -52,7 +51,6 @@ 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,8 +15,6 @@
//
// 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
@@ -72,14 +70,8 @@
// 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
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#if 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
@@ -93,8 +85,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__)
@@ -254,18 +246,19 @@
# 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__) \
|| defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__)
# define TIMER_PWM_PIN 13 // MightyCore, MegaCore
|| defined(__AVR_ATmega16__) || defined(__AVR_ATmega8535__)
# define TIMER_PWM_PIN 13 // MightyCore
#elif defined(__AVR_ATtiny84__)
# define TIMER_PWM_PIN 6
#else
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, Sparkfun Pro Micro etc
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, etc
#endif // ATmega48, ATmega88, ATmega168, ATmega328
//---------------------------------------------------------
@@ -298,8 +291,8 @@
//-----------------
#if defined(CORE_OC3A_PIN)
# define TIMER_PWM_PIN CORE_OC3A_PIN // Teensy
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(ARDUINO_AVR_PROMICRO)
# define TIMER_PWM_PIN 5 // Arduino Mega, Sparkfun Pro Micro
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
# define TIMER_PWM_PIN 5 // Arduino Mega
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)
# define TIMER_PWM_PIN 6 // MightyCore
#else
@@ -312,21 +305,12 @@
#elif defined(IR_USE_TIMER4_HS)
#define TIMER_RESET
#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_PWM (TCCR4A |= _BV(COM4A1))
#define TIMER_DISABLE_PWM (TCCR4A &= ~(_BV(COM4A1)))
#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); \
@@ -355,8 +339,6 @@
//-----------------
#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,3 +1,9 @@
## 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(unsigned long gap) {
void waitForGap(int 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(const char *label, int type, unsigned long value, int bits) {
void test(char *label, int type, unsigned long value, int bits) {
if (mode == SENDER) {
Serial.println(label);
if (type == NEC) {
@@ -175,7 +175,7 @@ void test(const 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(const char *label, unsigned int *rawbuf, int rawlen) {
void testRaw(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,11 +89,6 @@ 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.
@@ -127,17 +122,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)
@@ -151,7 +146,7 @@ void IRrecv::enableIRIn ( )
TIMER_RESET;
sei(); // enable interrupts
#endif
#endif
// Initialize state machine variables
irparams.rcvstate = STATE_IDLE;

View File

@@ -1,89 +0,0 @@
#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

View File

@@ -1,97 +0,0 @@
## 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