From d719c27f95fa374a44a8c022ab4afe7b3ce1fbe3 Mon Sep 17 00:00:00 2001 From: Rafi Khan Date: Thu, 14 Sep 2017 21:52:37 -0400 Subject: [PATCH] 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. --- README.md | 2 +- boarddefs.h | 4 ++-- changelog.md | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 00a4b03..9a6bac8 100644 --- a/README.md +++ b/README.md @@ -43,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** | diff --git a/boarddefs.h b/boarddefs.h index 17e2551..9ac9491 100644 --- a/boarddefs.h +++ b/boarddefs.h @@ -85,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__) diff --git a/changelog.md b/changelog.md index 81339f2..a3adbfe 100644 --- a/changelog.md +++ b/changelog.md @@ -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)