Skip to content

Commit 1a05ac0

Browse files
authored
Merge pull request Arduino-IRremote#337 from MCUdude/master
Add ATmega48 and ATmega88 to the list (+ some other minor commits)
2 parents 2343bee + b27398d commit 1a05ac0

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

Contributors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ These are the active contributors of this project that you may contact if there
1616
- [lumbric](https://github.com/lumbric): Contributor
1717
- [ElectricRCAircraftGuy](https://github.com/electricrcaircraftguy): Active Contributor
1818
- [henkel](https://github.com/henkel): Contributor
19+
- [MCUdude](https://github.com/MCUdude): Contributor
1920

2021
Note: This list is being updated constantly so please let [z3t0](https://github.com/z3t0) know if you have been missed.

IRremoteInt.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ EXTERN volatile irparams_t irparams;
219219
#define IR_USE_TIMER_TINY0 // tx = pin 1
220220

221221
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
222+
// ATmega48, ATmega88, ATmega168, ATmega328
222223
#else
223224
//#define IR_USE_TIMER1 // tx = pin 9
224225
#define IR_USE_TIMER2 // tx = pin 3
@@ -280,7 +281,7 @@ EXTERN volatile irparams_t irparams;
280281
# define TIMER_PWM_PIN 14 // MightyCore
281282
#else
282283
# define TIMER_PWM_PIN 3 // Arduino Duemilanove, Diecimila, LilyPad, etc
283-
#endif
284+
#endif // ATmega48, ATmega88, ATmega168, ATmega328
284285

285286
//---------------------------------------------------------
286287
// Timer1 (16 bits)
@@ -338,7 +339,7 @@ EXTERN volatile irparams_t irparams;
338339
# define TIMER_PWM_PIN 6
339340
#else
340341
# define TIMER_PWM_PIN 9 // Arduino Duemilanove, Diecimila, LilyPad, etc
341-
#endif
342+
#endif // ATmega48, ATmega88, ATmega168, ATmega328
342343

343344
//---------------------------------------------------------
344345
// Timer3 (16 bits)

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ Check [here](http://z3t0.github.io/Arduino-IRremote/) for tutorials and more inf
2121
- Arduino Uno / Mega / Leonardo / Duemilanove / Diecimila / LilyPad / Mini / Fio / Nano etc.
2222
- Teensy 1.0 / 1.0++ / 2.0 / 2++ / 3.0 / 3.1 / Teensy-LC; Credits: @PaulStoffregen (Teensy Team)
2323
- Sanguino
24-
- Atmega8535, 8, 16, 32, 164, 324, 644, 1284, 64, 128
24+
- ATmega8, 48, 88, 168, 328
25+
- ATmega8535, 16, 32, 164, 324, 644, 1284,
26+
- ATmega64, 128
2527
- ATtiny 84 / 85
2628

2729
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.
@@ -32,9 +34,9 @@ We are open to suggestions for adding support to new boards, however we highly r
3234
|--------------------------------------------------------------------------|---------------------|-------------------|
3335
| [ATtiny84](https://github.com/SpenceKonde/ATTinyCore) | **6** | **1** |
3436
| [ATtiny85](https://github.com/SpenceKonde/ATTinyCore) | **1** | **TINY0** |
35-
| ATmega8 | **9** | **1** |
37+
| [ATmega8](https://github.com/MCUdude/MiniCore) | **9** | **1** |
3638
| Atmega32u4 | 5, 9, **13** | 1, 3, **4** |
37-
| ATmega168, ATmega328 | **3**, 9 | 1, **2** |
39+
| [ATmega48, ATmega88, ATmega168, ATmega328](https://github.com/MCUdude/MiniCore) | **3**, 9 | 1, **2** |
3840
| [ATmega1284](https://github.com/MCUdude/MightyCore) | 13, 14, 6 | 1, **2**, 3 |
3941
| [ATmega164, ATmega324, ATmega644](https://github.com/MCUdude/MightyCore) | 13, **14** | 1, **2** |
4042
| [ATmega8535 ATmega16, ATmega32](https://github.com/MCUdude/MightyCore) | **13** | **1** |

examples/IRremoteInfo/IRremoteInfo.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@ void dumpPlatform() {
117117
Serial.println(F("ATmega164"));
118118
#elif defined(__AVR_ATmega128__)
119119
Serial.println(F("ATmega128"));
120+
#elif defined(__AVR_ATmega88__) || defined(__AVR_ATmega88P__)
121+
Serial.println(F("ATmega88"));
120122
#elif defined(__AVR_ATmega64__)
121123
Serial.println(F("ATmega64"));
124+
#elif defined(__AVR_ATmega48__) || defined(__AVR_ATmega48P__)
125+
Serial.println(F("ATmega48"));
122126
#elif defined(__AVR_ATmega32__)
123127
Serial.println(F("ATmega32"));
124128
#elif defined(__AVR_ATmega16__)

0 commit comments

Comments
 (0)